Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with Win32 Pin
kmy_ra27-Mar-04 9:20
kmy_ra27-Mar-04 9:20 
GeneralRe: Problem with Win32 Pin
Jijo.Raj28-Mar-04 0:01
Jijo.Raj28-Mar-04 0:01 
GeneralImproving code Pin
uus9927-Mar-04 2:26
uus9927-Mar-04 2:26 
GeneralRe: Improving code Pin
Maximilien27-Mar-04 5:09
Maximilien27-Mar-04 5:09 
GeneralRe: Improving code Pin
uus9927-Mar-04 5:44
uus9927-Mar-04 5:44 
GeneralRe: Improving code Pin
Rick York27-Mar-04 19:13
mveRick York27-Mar-04 19:13 
GeneralRe: Improving code Pin
uus9927-Mar-04 23:31
uus9927-Mar-04 23:31 
GeneralBug in CSplitterWnd Pin
Konrad Windszus27-Mar-04 2:18
Konrad Windszus27-Mar-04 2:18 
I have one CSplitterWnd inside my CFrameWnd with 3 rows and one column. In the first two rows are two different CFormViews and in the last row is a new CSplitterWnd with 1 row and 2 columns, which contain a CFormView each. The creation works with the following code in CFrameWnd::OnCreateClient:
<br />
// create first splitter wnd<br />
m_wndSplitterMain.CreateStatic( this, 3, 1 ) )<br />
m_wndSplitterMain.CreateView( 0, 0, RUNTIME_CLASS(CFunctionsDlg), size, pContext );<br />
	<br />
// second (in the middle) is playlist dialog<br />
m_wndSplitterMain.CreateView( 1, 0, RUNTIME_CLASS(CPlaylistDlg), size, pContext );<br />
<br />
// create second splitter wnd (as third pane in first splitter wnd)<br />
m_wndSplitterBrowser.CreateStatic(&m_wndSplitterMain, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitterMain.IdFromRowCol(2, 0));<br />
<br />
// third (on the bottom left) is directory dialog<br />
m_wndSplitterBrowser.CreateView(0, 0, RUNTIME_CLASS(CDirectoryDlg), size, pContext);<br />
// fourth (on the bottom right) is filelist<br />
m_wndSplitterBrowser.CreateView(0, 1, RUNTIME_CLASS(CFilelistDlg), size, pContext);


The problem is, that I use the WM_SIZE messages within the 4 CFormViews to resize the controls, but I don't get a WM_SIZE message for the first two CFormViews (within the first CSplitterWnd), with a safe (GetSafeHwnd() != NULL) handle of the dialog controls of that CFormView. Only the last 2 CFormViews (within the second CSplitterWnd) get correct WM_SIZE messages.

Even if I call RecalcLayout( true ); from within CFrameWnd only the last two CFormViews get the WM_SIZE messages. Is that bug already confirmed by Microsoft? What is a workaround for that?

Thanks for any help!
Konrad
GeneralRe: Bug in CSplitterWnd Pin
Gary R. Wheeler27-Mar-04 3:33
Gary R. Wheeler27-Mar-04 3:33 
GeneralRe: Bug in CSplitterWnd Pin
Prakash Nadar27-Mar-04 4:37
Prakash Nadar27-Mar-04 4:37 
GeneralRe: Bug in CSplitterWnd Pin
Gary R. Wheeler27-Mar-04 5:35
Gary R. Wheeler27-Mar-04 5:35 
GeneralRe: Bug in CSplitterWnd Pin
Prakash Nadar27-Mar-04 6:07
Prakash Nadar27-Mar-04 6:07 
GeneralEnumprocess Pin
firke_vishu@math.net27-Mar-04 1:19
sussfirke_vishu@math.net27-Mar-04 1:19 
GeneralRe: Enumprocess Pin
Prakash Nadar27-Mar-04 1:31
Prakash Nadar27-Mar-04 1:31 
GeneralRe: Enumprocess Pin
Gary R. Wheeler27-Mar-04 3:41
Gary R. Wheeler27-Mar-04 3:41 
GeneralRe: Enumprocess Pin
Prakash Nadar27-Mar-04 13:47
Prakash Nadar27-Mar-04 13:47 
Generalresouce from .dll Pin
nareshn227-Mar-04 1:05
nareshn227-Mar-04 1:05 
GeneralFor resouce .dll Pin
nareshn227-Mar-04 0:51
nareshn227-Mar-04 0:51 
QuestionDeriving from an ATL object? Pin
Roozbeh6926-Mar-04 21:57
professionalRoozbeh6926-Mar-04 21:57 
AnswerRe: Deriving from an ATL object? Pin
Prakash Nadar26-Mar-04 23:38
Prakash Nadar26-Mar-04 23:38 
Generalplease help me Pin
Hatem M Nassar26-Mar-04 19:20
Hatem M Nassar26-Mar-04 19:20 
GeneralRe: please help me Pin
Prakash Nadar26-Mar-04 23:31
Prakash Nadar26-Mar-04 23:31 
Generalusing extern Pin
monrobot1326-Mar-04 19:02
monrobot1326-Mar-04 19:02 
GeneralRe: using extern Pin
Prakash Nadar26-Mar-04 23:28
Prakash Nadar26-Mar-04 23:28 
GeneralMultithread locking Pin
Madmaximus26-Mar-04 15:28
Madmaximus26-Mar-04 15:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.