Click to See Complete Forum and Search --> : resizing of button


May 28th, 1999, 04:38 AM
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
jagrati.agrawal@st.com

-=SKULK=-
May 28th, 1999, 05:15 AM
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=-