Hi
Can we give our own defined button size for the default (Ok, Cancel, Apply) buttons in a property sheet? Or can we resize these buttons?
Thanks in advance
[email protected]
Printable View
Hi
Can we give our own defined button size for the default (Ok, Cancel, Apply) buttons in a property sheet? Or can we resize these buttons?
Thanks in advance
[email protected]
Hi
I think it is possible to resize the buttons by using
pButton->SetWindowPos(NULL, 0, 0, yourWidth, yourHeight,
SWP_NOMOVE | SWP_NOZORDER);
get a poiter to the button by calling
CButton *pButton = (CButton*) GetDlgItem(IDC_...)
Ids are: IDOK, IDCANCEL, ID_APPLY_NOW
you can get the current size of a button by calling
pButton->GetWindowRect(rect)
then you can modify the rect and call SetWindowPos(....)
cu
--
-=SKULK=-