ianivs

ianivs

Joined Member # 2850533
1 Posts 0 Replies 188 Reputation

I noticed that the BCM_GETIDEALSIZE message does not account for the button text when using WindowBlinds. For example (using ATL): CButton button; button.Create( parent.m_hWnd, 0, L"Login", WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | BS_PUSHBUTTON, 0, IDS_LOGIN); SIZE size; size.cx = 0; size.cy = 0; button.GetIdealSize(&size); When not using WindowBlin

0 Replies 1,032 Views