Lines Matching refs:size
63 CRect size; in OnCreate() local
64 GetWindowRect(&size); in OnCreate()
68 size.right = size.left + m_width; in OnCreate()
69 size.bottom = size.top + m_height; in OnCreate()
70 MoveWindow(size); in OnCreate()
79 size = client; in OnCreate()
80 size.top += offset; in OnCreate()
81 size.right -= offset; in OnCreate()
82 size.left = size.right - m_close_button_width; in OnCreate()
83 size.bottom = size.top + m_title_bar_height; in OnCreate()
84 close_button.Create(NULL, WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_OWNERDRAW, size, this, IDCANCEL); in OnCreate()
130 CRect size; in AddSaveButton() local
134 size.bottom = client.bottom - 4; in AddSaveButton()
135 size.top = size.bottom - m_save_button_height; in AddSaveButton()
136 size.right = client.right - 4; in AddSaveButton()
137 size.left = size.right - m_save_button_width; in AddSaveButton()
139 …HILD | WS_VISIBLE | WS_TABSTOP| BS_DEFPUSHBUTTON | BS_OWNERDRAW | MAX_TAB_STOPS, size, this, IDOK); in AddSaveButton()
150 CRect size; in AddCancelButton() local
154 size.bottom = client.bottom - 4 - (m_save_button_height - m_cancel_button_height) / 2; in AddCancelButton()
155 size.top = size.bottom - m_cancel_button_height; in AddCancelButton()
156 size.left = client.left + 4; in AddCancelButton()
157 size.right = size.left + m_cancel_button_width; in AddCancelButton()
159 …BS_PUSHBUTTON | BS_CENTER | WS_TABSTOP | BS_VCENTER | WS_CHILD | WS_VISIBLE, size, this, IDCANCEL); in AddCancelButton()
205 CRect size; in PaintTitleAndStatusBar() local
219 GetClientRect(&size); in PaintTitleAndStatusBar()
220 xpos = size.left; in PaintTitleAndStatusBar()
222 while(xpos < size.right) in PaintTitleAndStatusBar()
224 …dc->StretchBlt(xpos, size.top, bm.bmWidth, m_title_bar_height, &dcMemory, 0, 0, bm.bmWidth, bm.bmH… in PaintTitleAndStatusBar()
234 title_rect = size; in PaintTitleAndStatusBar()
268 xpos = size.left; in PaintTitleAndStatusBar()
269 while(xpos < size.right) in PaintTitleAndStatusBar()
271 …dc->StretchBlt(xpos, size.bottom - m_status_bar_height, bm.bmWidth, m_status_bar_height, &dcMemory… in PaintTitleAndStatusBar()
302 CRect size; in OnSize() local
305 size.bottom = client.bottom - 4; in OnSize()
306 size.top = size.bottom - m_save_button_height; in OnSize()
307 size.right = client.right - 4; in OnSize()
308 size.left = size.right - m_save_button_width; in OnSize()
311 save_button.MoveWindow(&size); in OnSize()
317 CRect size; in OnSize() local
320 size.bottom = client.bottom - 4 - (m_save_button_height - m_cancel_button_height) / 2; in OnSize()
321 size.top = size.bottom - m_cancel_button_height; in OnSize()
322 size.left = client.left + 4; in OnSize()
323 size.right = size.left + m_cancel_button_width; in OnSize()
326 cancel_button.MoveWindow(&size); in OnSize()
331 CRect size; in OnSize() local
332 GetClientRect(&size); in OnSize()
334 size.top += 4; in OnSize()
335 size.right -= 4; in OnSize()
336 size.left = size.right - m_close_button_width; in OnSize()
337 size.bottom = size.top + m_close_button_height; in OnSize()
340 close_button.MoveWindow(&size); in OnSize()
470 CRect size; in DrawItem() local
471 GetClientRect(&size); in DrawItem()
508 size.left += 2; in DrawItem()
509 size.top += 2; in DrawItem()
513 dc->DrawText(title, &size, DT_CENTER|DT_SINGLELINE|DT_VCENTER); in DrawItem()