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 » Window Position States Collapse All
Subject Author Date
Daniel Tiedy Nov 11, 2003 - 5:24 PM

I have been having problems with the states of the windows reloading correctly. See ftp://ftp.hash.com/pub/misc/StateSet.jpg and ftp://ftp.hash.com/pub/misc/StateReload.jpg. One of the problems I see is that the height on the autohide window states are wrong. If I tack the window and retack the window back into auto hide mode it is correct. I’m not sure what I’m doing wrong with the Project workspace window and Property window. One thing I know is I haven’t set up the initial undocked size of panels, but all these panels are docked. Thanks for all your help. Your product support havebeen incredibly quick and detailed.

Daniel Tiedy Nov 11, 2003 - 6:12 PM

I found part of my problem with the auto hide panels. I am working on a fix for it. I was under the assumption that the CExtControlBar would get OnSize messages, which is where I resize my child windows. I realize that there can only be one child window now, and that child window can do all the sizing of its children. The other state reload problems still exist however. Thanks again.

Technical Support Nov 13, 2003 - 7:02 AM

Dear Daniel,

To set the initial docking state of resizable bars in the frame window, the following method of CExtControlBar is always should be used at least once:

	bool CExtControlBar::DockControlBar(
		UINT nDockBarID,
		UINT nCircleNo,
		CFrameWnd * pDockSite = NULL,
		bool bRecalcLayout = true
		);

The nCircleNo parameter for any resizable bar should be greater than or equal to 1. We believe this is the source of the problem.

Daniel Tiedy Nov 13, 2003 - 3:09 PM

Thank you, that was exactly the problem, I was calling the CMainFrame::DockControlBar for my resizable windows also. I even had read it in your doc’s, not sure why I missed that one.