Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change the size of a control
Message
General information
Forum:
Visual C++
Category:
Dialogs
Miscellaneous
Thread ID:
00862071
Message ID:
00862092
Views:
16
>Hi Everybody,
>
>How may I programmatically change the size of a control in a Dialog Box in Visual C++?

CWnd::SetWindowPos() with SWP_NOMOVE flag or CWnd::MoveWindow().
For example:
GetDlgItem(IDC_SOMECONTROL)->SetWindowPos(NULL,0,0,100,200,SWP_NOMOVE|SWP_NOZORDER);
Previous
Reply
Map
View

Click here to load this message in the networking platform