|
-
May 28th, 1999, 10:12 AM
#1
Dynamically Centering Control in View
Hi everybody,
I have a project that has a splitter window. On the right pane, I am dynamically changing the views depending on what the user selects in the left pane. My problem is this, hopefully it is simple. One of the right hand views happens to be a CPropertySheet object. I am centering this window when it first pops up. Works great! But when the user resizes the frame window, it screws it up. I would like to be able to center the window after the user is through. I have tried overriding OnDraw and OnSize by calling
m_pSheet->CenterWindow();
but it does not work the way I would like it. Do I need to take care of this myself with functions like MoveWindow or SetWindowPos, or is there a place I can put the CenterWindow function to make it work.
Thanks in advance,
Wayne
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|