Move/resize dialog controls?
- From: Vincent Fatica <vince@xxxxxxxxxxxxxxxxx>
- Date: 9 Aug 2008 11:55:58 -0400
I have a well-working function to move/resize controls in response to WM_SIZE in
a dialog box proc. It uses routines like this one.
// move bottom controls up/down
for ( INT i=H_RUN; i<=H_DEL; i++ )
{
GetWindowPlacement(h[i], &wp);
wp.rcNormalPosition.top += y;
wp.rcNormalPosition.bottom += y;
SetWindowPlacement(h[i], &wp);
}
I've googled some and always find SetWindowPos()/MoveWindow() recommended for
this purpose. Would they be more efficient? If so, how do I get client
coordinates in the first place? Thanks.
--
- Vince
.
- Follow-Ups:
- Re: Move/resize dialog controls?
- From: Alex Blekhman
- Re: Move/resize dialog controls?
- From: William DePalo [MVP VC++]
- Re: Move/resize dialog controls?
- Prev by Date: Re: Another C question!
- Next by Date: Re: Move/resize dialog controls?
- Previous by thread: Another C question!
- Next by thread: Re: Move/resize dialog controls?
- Index(es):