Click here to Skip to main content
16,011,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC42D.DLL not found !!! Pin
ZarrinPour11-Mar-03 7:34
ZarrinPour11-Mar-03 7:34 
GeneralRe: MFC42D.DLL not found !!! Pin
User 665811-Mar-03 7:59
User 665811-Mar-03 7:59 
Generalw2000 & w98 Pin
doctorpi11-Mar-03 7:27
doctorpi11-Mar-03 7:27 
GeneralRe: w2000 & w98 Pin
Mike Nordell11-Mar-03 19:33
Mike Nordell11-Mar-03 19:33 
GeneralWindow Pin
wanju11-Mar-03 6:42
wanju11-Mar-03 6:42 
GeneralRe: Window Pin
Big Art11-Mar-03 7:01
Big Art11-Mar-03 7:01 
GeneralCPropertySheet Default Button Pin
Wim Jans11-Mar-03 6:38
Wim Jans11-Mar-03 6:38 
GeneralRe: CPropertySheet Default Button Pin
dazinith11-Mar-03 8:20
dazinith11-Mar-03 8:20 
1) here is some code that builds a property sheet and gets rid of apply
// build the property sheet
CPropertySheet CompSheet("Company Information"); // make new CPropertySheet
CCompBasic page1(pComp, TRUE); // classes derived from CPropertyPage
CCompAddr page2(pComp);
CCompBank page3(pComp);
CCompDiscountMaint page4(pComp);
CompSheet.AddPage(&page1); // add the pages to the sheet
CompSheet.AddPage(&page2);
CompSheet.AddPage(&page3);
CompSheet.AddPage(&page4);
CompSheet.m_psh.dwFlags |= PSH_NOAPPLYNOW; // hide the apply button


2)in your dialog's onok you are probably still calling onok which is passed to the sheet.. at least thats my initial guess..

CMyDialog::OnOK()
{
AfxMessageBox("woop!");
// CDialog::OnOK();  <- make sure you arent still calling this
}
i may be way off on the 2nd one.. but the 1st will work..

still a newb.. cut me some slack :P
-dz
GeneralRe: CPropertySheet Default Button Pin
Wim Jans11-Mar-03 21:25
Wim Jans11-Mar-03 21:25 
GeneralRe: CPropertySheet Default Button Pin
Wim Jans11-Mar-03 21:53
Wim Jans11-Mar-03 21:53 
GeneralGDI resources Pin
doctorpi11-Mar-03 6:28
doctorpi11-Mar-03 6:28 
GeneralRe: GDI resources Pin
MAAK11-Mar-03 8:55
MAAK11-Mar-03 8:55 
GeneralPlayEnhMetaFile on CreateDIBSection Pin
dr_nick_riviera11-Mar-03 6:06
dr_nick_riviera11-Mar-03 6:06 
GeneralPlayEnhMetaFile Pin
dr_nick_riviera11-Mar-03 6:04
dr_nick_riviera11-Mar-03 6:04 
QuestionSeparate all lines in a string? Pin
Rickard Andersson2011-Mar-03 6:02
Rickard Andersson2011-Mar-03 6:02 
AnswerRe: Separate all lines in a string? Pin
Big Art11-Mar-03 7:27
Big Art11-Mar-03 7:27 
GeneralRe: Separate all lines in a string? Pin
Rickard Andersson2011-Mar-03 8:34
Rickard Andersson2011-Mar-03 8:34 
AnswerRe: Separate all lines in a string? Pin
Alvaro Mendez11-Mar-03 11:13
Alvaro Mendez11-Mar-03 11:13 
AnswerRe: Separate all lines in a string? Pin
valikac11-Mar-03 12:16
valikac11-Mar-03 12:16 
QuestionPopup MsgBox without a parent to pass? Pin
dazinith11-Mar-03 6:01
dazinith11-Mar-03 6:01 
AnswerRe: Popup MsgBox without a parent to pass? Pin
dazinith11-Mar-03 6:17
dazinith11-Mar-03 6:17 
GeneralRe: Popup MsgBox without a parent to pass? Pin
Alvaro Mendez11-Mar-03 11:17
Alvaro Mendez11-Mar-03 11:17 
QuestionWhat is wrong with this code? An URGENT question. Pin
mijarral11-Mar-03 5:57
mijarral11-Mar-03 5:57 
AnswerRe: What is wrong with this code? An URGENT question. Pin
Maximilien11-Mar-03 6:32
Maximilien11-Mar-03 6:32 
GeneralDriver not capable at Update Pin
ElizabethC11-Mar-03 5:43
ElizabethC11-Mar-03 5:43 

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.