Click here to Skip to main content
15,891,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChanging default printer settings Pin
liginname7-Mar-06 17:36
liginname7-Mar-06 17:36 
AnswerRe: Changing default printer settings Pin
Hamid_RT7-Mar-06 17:57
Hamid_RT7-Mar-06 17:57 
GeneralRe: Changing default printer settings Pin
liginname7-Mar-06 18:01
liginname7-Mar-06 18:01 
GeneralRe: Changing default printer settings Pin
Hamid_RT7-Mar-06 18:17
Hamid_RT7-Mar-06 18:17 
QuestionHow to GetMessage()? Pin
syntaxed7-Mar-06 17:22
syntaxed7-Mar-06 17:22 
AnswerRe: How to GetMessage()? Pin
Ryan Binns7-Mar-06 17:32
Ryan Binns7-Mar-06 17:32 
GeneralRe: How to GetMessage()? Pin
syntaxed7-Mar-06 20:33
syntaxed7-Mar-06 20:33 
GeneralRe: How to GetMessage()? Pin
Ryan Binns7-Mar-06 22:03
Ryan Binns7-Mar-06 22:03 
jusstujoo wrote:
1) The CMyDlg's instance is created in CMyApp, and there the dialog is DoModal()ed. So there in CMyApp im supposed to subclass it?


You'll have to do it after it's been created. In your WM_CREATE handler in your CMyDlg class would be a good place.

jusstujoo wrote:
2)How to subclass an instance? can you be more specific with reference to my code at the link i posted in my previous post?


You call SubclassWindow() on your dialog window. Have a look at the MSDN documentation to see exactly what you have to do. It's not too difficult.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: How to GetMessage()? Pin
syntaxed7-Mar-06 22:28
syntaxed7-Mar-06 22:28 
GeneralRe: How to GetMessage()? Pin
Ryan Binns7-Mar-06 22:31
Ryan Binns7-Mar-06 22:31 
GeneralRe: How to GetMessage()? Pin
syntaxed8-Mar-06 18:02
syntaxed8-Mar-06 18:02 
GeneralRe: How to GetMessage()? Pin
Ryan Binns8-Mar-06 22:23
Ryan Binns8-Mar-06 22:23 
GeneralRe: How to GetMessage()? Pin
syntaxed9-Mar-06 17:46
syntaxed9-Mar-06 17:46 
GeneralRe: How to GetMessage()? Pin
Ryan Binns9-Mar-06 21:44
Ryan Binns9-Mar-06 21:44 
QuestionHow to read a pdf file using c++ Pin
Allang Garder7-Mar-06 17:10
Allang Garder7-Mar-06 17:10 
AnswerRe: How to read a pdf file using c++ Pin
Hamid_RT7-Mar-06 17:25
Hamid_RT7-Mar-06 17:25 
Questionhow to see which macro was defined in a cpp unit? Pin
derek77-Mar-06 16:39
derek77-Mar-06 16:39 
AnswerRe: how to see which macro was defined in a cpp unit? Pin
Stephen Hewitt7-Mar-06 17:11
Stephen Hewitt7-Mar-06 17:11 
AnswerRe: how to see which macro was defined in a cpp unit? Pin
Nibu babu thomas7-Mar-06 17:17
Nibu babu thomas7-Mar-06 17:17 
GeneralRe: how to see which macro was defined in a cpp unit? Pin
derek77-Mar-06 18:34
derek77-Mar-06 18:34 
Questionproblem with wide chars (urgent :( ) Pin
gamitech7-Mar-06 15:20
gamitech7-Mar-06 15:20 
AnswerRe: problem with wide chars (urgent :( ) Pin
Nibu babu thomas7-Mar-06 16:55
Nibu babu thomas7-Mar-06 16:55 
GeneralRe: problem with wide chars (urgent :( ) Pin
gamitech7-Mar-06 22:38
gamitech7-Mar-06 22:38 
GeneralRe: problem with wide chars (urgent :( ) Pin
Nibu babu thomas7-Mar-06 22:50
Nibu babu thomas7-Mar-06 22:50 
AnswerRe: problem with wide chars (urgent :( ) Pin
James R. Twine8-Mar-06 1:43
James R. Twine8-Mar-06 1: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.