Click here to Skip to main content
15,900,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Parameter passsing between classes Pin
JudyL_MD11-Jul-07 7:40
JudyL_MD11-Jul-07 7:40 
AnswerRe: Parameter passsing between classes Pin
chaitannya_m11-Jul-07 9:04
chaitannya_m11-Jul-07 9:04 
GeneralRe: Parameter passsing between classes Pin
JudyL_MD12-Jul-07 3:41
JudyL_MD12-Jul-07 3:41 
Questionrun an EXE for all users of the computer Pin
rahul398511-Jul-07 5:29
rahul398511-Jul-07 5:29 
QuestionRe: run an EXE for all users of the computer Pin
David Crow11-Jul-07 6:00
David Crow11-Jul-07 6:00 
AnswerRe: run an EXE for all users of the computer Pin
Randor 11-Jul-07 6:22
professional Randor 11-Jul-07 6:22 
QuestionHow to get IDD of a PropertyPage dialog? [modified] Pin
Electronic7511-Jul-07 5:21
Electronic7511-Jul-07 5:21 
AnswerRe: How to get IDD of a PropertyPage dialog? Pin
David Crow11-Jul-07 6:11
David Crow11-Jul-07 6:11 
Why does your CPropertySheet object belong to the document class rather than the view class?

Electronic75 wrote:
)//nID is always zero


As it probably should be. GetDlgCtrlID() is for returning the ID of controls on dialog boxes or property pages.

I've never known it necessary to query a dialog box's ID. In any case, I'd be more inclined to compare the return value of GetActivePage() with the class objects associated with the various pages. For example:

CPropertyPage *p = pDoc->m_sheetProperty.GetActivePage();
if (p->IsKindOf(RUNTIME_CLASS(CMyOtherPage)))
    ...
else if (p->IsKindOf(RUNTIME_CLASS(CTheLastPage)))
    ...



"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: How to get IDD of a PropertyPage dialog? Pin
Electronic7511-Jul-07 6:28
Electronic7511-Jul-07 6:28 
Question.hpj errror Pin
sridharsb200711-Jul-07 4:58
sridharsb200711-Jul-07 4:58 
Questiontaking variable value to another class Pin
Maynka11-Jul-07 3:53
Maynka11-Jul-07 3:53 
QuestionRe: taking variable value to another class Pin
David Crow11-Jul-07 4:07
David Crow11-Jul-07 4:07 
AnswerRe: taking variable value to another class Pin
Emmanouil11-Jul-07 4:12
Emmanouil11-Jul-07 4:12 
AnswerRe: taking variable value to another class Pin
sheshidar11-Jul-07 18:21
sheshidar11-Jul-07 18:21 
QuestionRich text format of text Pin
Jhony george11-Jul-07 3:39
Jhony george11-Jul-07 3:39 
AnswerRe: Rich text format of text Pin
Randor 11-Jul-07 6:12
professional Randor 11-Jul-07 6:12 
QuestionLogging of data Pin
Maynka11-Jul-07 3:38
Maynka11-Jul-07 3:38 
AnswerRe: Logging of data Pin
David Crow11-Jul-07 4:04
David Crow11-Jul-07 4:04 
QuestionOne project linking to files in another project Pin
Marimuthu.r11-Jul-07 3:04
Marimuthu.r11-Jul-07 3:04 
AnswerRe: One project linking to files in another project Pin
Cedric Moonen11-Jul-07 3:07
Cedric Moonen11-Jul-07 3:07 
GeneralRe: One project linking to files in another project Pin
Marimuthu.r11-Jul-07 3:18
Marimuthu.r11-Jul-07 3:18 
GeneralRe: One project linking to files in another project Pin
Cedric Moonen11-Jul-07 3:34
Cedric Moonen11-Jul-07 3:34 
GeneralRe: One project linking to files in another project Pin
Marimuthu.r11-Jul-07 3:57
Marimuthu.r11-Jul-07 3:57 
QuestionDelete File function for wildcards Pin
Programm3r11-Jul-07 2:41
Programm3r11-Jul-07 2:41 
AnswerRe: Delete File function for wildcards Pin
James R. Twine11-Jul-07 3:05
James R. Twine11-Jul-07 3:05 

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.