Click here to Skip to main content
14,388,768 members

C / C++ / MFC

 
Questionc programming Pin
Member 1460831330-Sep-19 6:47
MemberMember 1460831330-Sep-19 6:47 
AnswerRe: c programming Pin
phil.o30-Sep-19 7:09
mvephil.o30-Sep-19 7:09 
AnswerRe: c programming Pin
Dave Kreskowiak30-Sep-19 7:13
mveDave Kreskowiak30-Sep-19 7:13 
AnswerRe: c programming Pin
Victor Nijegorodov30-Sep-19 9:16
MemberVictor Nijegorodov30-Sep-19 9:16 
AnswerRe: c programming Pin
CPallini30-Sep-19 10:48
mveCPallini30-Sep-19 10:48 
QuestionHow to hide or show button from another class MFC vc++ Pin
Member 1457555630-Sep-19 4:44
MemberMember 1457555630-Sep-19 4:44 
AnswerRe: How to hide or show button from another class MFC vc++ Pin
Victor Nijegorodov30-Sep-19 4:51
MemberVictor Nijegorodov30-Sep-19 4:51 
GeneralRe: How to hide or show button from another class MFC vc++ Pin
Member 1457555630-Sep-19 5:10
MemberMember 1457555630-Sep-19 5:10 
There are two button in Dialog 1.
BOOL CMyFirstDlg::OnInitDialog()
{
CDialogEx::OnInitDialog();
GetDlgItem(IDC_BUTTON)->ShowWindow(FALSE);

ShowWindow(SW_MINIMIZE);


return TRUE;  
}


When I click one button i want to make the other button visible again.

void CMyFirstDlg::OnBnClickedButton()
{
  CSecondDlg* Obj = new CSecondDlg();
  Obj->DisplayButton();
}


Inside the DisplayButton function which is in another class there is
GetDlgItem(IDC_BUTTON)->ShowWindow(TRUE);

GeneralRe: How to hide or show button from another class MFC vc++ Pin
Victor Nijegorodov30-Sep-19 5:17
MemberVictor Nijegorodov30-Sep-19 5:17 
GeneralRe: How to hide or show button from another class MFC vc++ Pin
David Crow30-Sep-19 6:09
MemberDavid Crow30-Sep-19 6:09 
AnswerRe: How to hide or show button from another class MFC vc++ Pin
David Crow30-Sep-19 6:06
MemberDavid Crow30-Sep-19 6:06 
GeneralRe: How to hide or show button from another class MFC vc++ Pin
Member 1457555630-Sep-19 19:58
MemberMember 1457555630-Sep-19 19:58 
QuestionCreating separate class for database connection MFC vc++ Pin
Member 1457555626-Sep-19 19:59
MemberMember 1457555626-Sep-19 19:59 
AnswerRe: Creating separate class for database connection MFC vc++ Pin
Gerry Schmitz26-Sep-19 20:08
mveGerry Schmitz26-Sep-19 20:08 
SuggestionRe: Creating separate class for database connection MFC vc++ Pin
David Crow27-Sep-19 7:58
MemberDavid Crow27-Sep-19 7:58 
Questioncannot change rgrc0 with wm_nccalcsize Pin
Member 1180360726-Sep-19 7:26
MemberMember 1180360726-Sep-19 7:26 
AnswerRe: cannot change rgrc0 with wm_nccalcsize Pin
Richard MacCutchan26-Sep-19 7:47
mveRichard MacCutchan26-Sep-19 7:47 
GeneralRe: cannot change rgrc0 with wm_nccalcsize Pin
Member 1180360726-Sep-19 8:41
MemberMember 1180360726-Sep-19 8:41 
GeneralRe: cannot change rgrc0 with wm_nccalcsize Pin
Victor Nijegorodov26-Sep-19 9:33
MemberVictor Nijegorodov26-Sep-19 9:33 
GeneralRe: cannot change rgrc0 with wm_nccalcsize Pin
Member 1180360726-Sep-19 9:43
MemberMember 1180360726-Sep-19 9:43 
GeneralRe: cannot change rgrc0 with wm_nccalcsize Pin
Victor Nijegorodov26-Sep-19 10:08
MemberVictor Nijegorodov26-Sep-19 10:08 
GeneralRe: cannot change rgrc0 with wm_nccalcsize Pin
Member 1180360726-Sep-19 10:16
MemberMember 1180360726-Sep-19 10:16 
GeneralRe: cannot change rgrc0 with wm_nccalcsize Pin
Victor Nijegorodov26-Sep-19 10:21
MemberVictor Nijegorodov26-Sep-19 10:21 
GeneralRe: cannot change rgrc0 with wm_nccalcsize Pin
Member 1180360726-Sep-19 10:22
MemberMember 1180360726-Sep-19 10:22 
GeneralRe: cannot change rgrc0 with wm_nccalcsize Pin
Victor Nijegorodov26-Sep-19 10:31
MemberVictor Nijegorodov26-Sep-19 10:31 

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.