A Journey 2 Eternity

4 Steps to Recreate a Control (when there is no other workaround)

Posted on: March 11, 2008

To recreate a Control you must:


1. Store rectangle and previous window in Z order (to keep Tab work normally)
2. Destroy Control by DestroyWindow;
3.Create Control by CreateWindow(); // put here your styles.
4. move window to proper Z order by:
SetWindowPos(&wndPrev, 0,0,0,0, SWP_NOMOVE_SWP_NOSIZE|SWP_NOZCTIVATE);

Advertisements
Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Pages

Categories

March 2008
M T W T F S S
« Dec   Apr »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Blog Stats

  • 26,968 hits
%d bloggers like this: