|
-
May 28th, 1999, 04:38 AM
#1
resizing of button
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]
-
May 28th, 1999, 05:15 AM
#2
Re: resizing of button
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=-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|