asked on
ASKER
GetDlgItem(IDC_TreeView)->ShowWindow (!m_bVisib le1 ? SW_HIDE : SW_SHOW);
CWnd * pTree = GetDlgItem(IDC_TreeView);
if (pTree)
{
pTree->ShowWindow(pTree->IsWindowVisible()? SW_HIDE : SW_SHOW);
}
OnActivate() here - this function is called when a window get's activated, so i.e. for a top-level window this is called in case the user uses ALT-TAB to toggle between your application and others
About using a flag or not (as Sara suggested) you can do as you want
ASKER
ASKER
ASKER
ASKER
ASKER
C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.
TRUSTED BY
ASKER
Another question PLease , In the same dialog box , I want each time , I clicked in button , Some controls displayed .
My scenario for my GUI , is by clicking button"connect" ,two edit controls displayed , then by validating this step , a short menu will be appear in the left of dialog box .By clicking in one menu ,a description and a controls should be displayed in the right of the dialog box .
Is there any method to devise the dialog box into two child dialog box , by pressing in the menu of the dialog box in left , data and controls will be shown in the left of the dialog box.