c++ - Opening another form in mfc -


i need close current form dialog , open form after user clicks button in mfc application. school project application. have decided use mfc in visual c++ project , have obsolutely no guidance regarding language. had chosen single document , cformview class in mfc application wizard , used resource editor design 2 forms 1 of them displayed @ start of program , need other open , replace existing form. had tried googling answer couldn't understand anything. have basic c++ oop knowledge new mfc. use visual studio 2013 ultimate.

you don't close current dialog truely, can hide it. this:

ccurrentdialig::onbtncliekted() { showwindow(this->m_hwnd, sw_hide); cotherdialog dlg; dlg.domodal(); } 

Comments

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -