A Journey 2 Eternity

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

Posted on: December 1, 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);

Leave a comment

Pages

Categories

December 2008
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

Blog Stats

  • 32,515 hits