Click here to Skip to main content
15,921,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Inline assembly - what good is it? Pin
Henry miller2-Dec-04 9:07
Henry miller2-Dec-04 9:07 
GeneralRe: Inline assembly - what good is it? Pin
BlackDice2-Dec-04 10:46
BlackDice2-Dec-04 10:46 
AnswerRe: Inline assembly - what good is it? Pin
Harold Bamford3-Dec-04 6:06
Harold Bamford3-Dec-04 6:06 
AnswerRe: Inline assembly - what good is it? Pin
Harold Bamford3-Dec-04 6:20
Harold Bamford3-Dec-04 6:20 
GeneralAPI constants value Pin
wk_vigorous2-Dec-04 2:18
wk_vigorous2-Dec-04 2:18 
GeneralRe: API constants value Pin
BlackDice2-Dec-04 2:33
BlackDice2-Dec-04 2:33 
Questionhide one property page?? Pin
includeh102-Dec-04 2:11
includeh102-Dec-04 2:11 
AnswerRe: hide one property page?? Pin
JoramW2-Dec-04 2:49
JoramW2-Dec-04 2:49 
Do you want the tab order the same, or must the index number remain the same (and those of the other tabs)? The latter, to the best of my knowledge, is not possible. For the former, it's probably easiest to remove all of the tabs (using RemovePage) and then add them again (using AddPage), with the page in question on a conditional statement:

void CMyDlg::OnBnClickedShowPgTwo(void)
{
UpdateData();
ResetPropPages();
}

void CMyDlg::ResetPropPages(void)
{
// remove pages - this removes all pages regardless of order or which are showing
while(m_wndPropsht.GetPageCount())
m_wndPropSht.RemovePage(m_wndPropSht.GetPage(0));

// add pages again (order important)
m_wndPropSht.AddPage(&m_wndPg1);
if(m_bShowPg2) m_wndPropSht.AddPage(&m_wndPg2);
m_wndPropSht.AddPage(&m_wndPg3);
}

If you've derived the CPropertySheet class you can do it from within that (no need for "m_wndPropSht."). It doesn't matter if you're showing the property sheet at the time or not, though you need to think about which page to show after resetting, particularly if you were showing the removed page.
GeneralRe: hide one property page?? Pin
includeh102-Dec-04 5:02
includeh102-Dec-04 5:02 
GeneralRe: hide one property page?? Pin
JoramW2-Dec-04 22:52
JoramW2-Dec-04 22:52 
Questionhow to know Service pack of MSVC6.0 Pin
Abhi Lahare2-Dec-04 1:58
Abhi Lahare2-Dec-04 1:58 
AnswerRe: how to know Service pack of MSVC6.0 Pin
David Crow2-Dec-04 4:05
David Crow2-Dec-04 4:05 
GeneralRe: how to know Service pack of MSVC6.0 Pin
david_gilmour2-Dec-04 22:22
david_gilmour2-Dec-04 22:22 
GeneralRe: how to know Service pack of MSVC6.0 Pin
David Crow3-Dec-04 2:50
David Crow3-Dec-04 2:50 
QuestionAVIFile file size restriction? Pin
JoramW2-Dec-04 1:26
JoramW2-Dec-04 1:26 
GeneralHELP Immediately !! Very important!! Pin
angello62-Dec-04 1:21
angello62-Dec-04 1:21 
GeneralMultiple column combo box Pin
ledallam1-Dec-04 23:46
ledallam1-Dec-04 23:46 
GeneralLaunching Notepad to open a specific file Pin
Anonymous1-Dec-04 22:56
Anonymous1-Dec-04 22:56 
GeneralRe: Launching Notepad to open a specific file Pin
vaniacilli1-Dec-04 23:05
vaniacilli1-Dec-04 23:05 
GeneralRe: Launching Notepad to open a specific file Pin
ThatsAlok1-Dec-04 23:09
ThatsAlok1-Dec-04 23:09 
GeneralRe: Launching Notepad to open a specific file Pin
Arsalan Malik1-Dec-04 23:17
Arsalan Malik1-Dec-04 23:17 
GeneralRe: Launching Notepad to open a specific file Pin
Anonymous1-Dec-04 23:32
Anonymous1-Dec-04 23:32 
GeneralReading Variables Pin
gamitech1-Dec-04 22:50
gamitech1-Dec-04 22:50 
Generalabout TransmitFile Pin
yingkou1-Dec-04 22:46
yingkou1-Dec-04 22:46 
GeneralLinker Error Pin
Yuvaraj N1-Dec-04 22:18
Yuvaraj N1-Dec-04 22:18 

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.