Getting titlebar button's sizes
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi All, I am working with a custom titlebar. I want to get the current size of the close button and set the value for the button which i am drawing. The problem is, if i put the left point in a CRect as pCapRect->left = rcWindow.Width()-(sizeButton.cx); and draw the close button using pDc->DrawFrameControl(pCapRect, DFC_CAPTION, DFCS_CAPTIONCLOSE); // For Close the left position (also the size) is not getting aligned with the default close button(which shows up), when i change from one skin to another. Awaiting your reply