Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtButton Collapse All
Subject Author Date
Courtney Smith Oct 19, 2006 - 1:42 PM

Is there a way to resize a cextbutton once it has been created?

Suhai Gyorgy Oct 20, 2006 - 3:54 AM

CExtButton is derived from CButton which in turn is derived from CWnd, so regular resizing should work:

CRect rc;
int iNewWidth = 50, iNewHeight = 14;
m_button.GetWindowRect(&rc);
m_button.MoveWindow(rc.left, rc.top, iNewWidth, iNewHeight);
Invalidate();
UpdateWindow();