This topic is now archived and is closed to further replies.

MFC DialogBar problem

This topic is 4955 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I''ve have added a CDialogBar to my SDI window,but all the push button like controls are disabled,even if dynamically enable them(with the EnableWindow() function), they just remain disabled while all the other controls are working properly.
CFrameWnd *cFrame = NULL;
	cFrame = this->GetParentFrame();
		AfxMessageBox( "Unable to create m_GameDlgBar\n"
		return ;//FALSE;

and then the function EnableButton''s def.
void CGameDlgBar::EnableButtons()
	HWND hWnd;
	GetDlgItem( IDC_PASS, &hWnd);
	::EnableWindow(hWnd, TRUE);
	GetDlgItem( IDC_SEND, &hWnd);
	::EnableWindow(hWnd, TRUE);
	//m_Send.EnableWindow( TRUE );

	//m_Pass.EnableWindow( TRUE );

Any help?

Share this post

Link to post
Share on other sites
Yeah i solved the problem but i don''t remember exactly what i did. Try adding CBRS_TOOLTIPS | CBRS_FLYBY this flag to your CToolBar''s CreateEx function.

If it doesn''t work, post your code over.

Share this post

Link to post
Share on other sites