Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to read a data file from harddisk to program and print it on the screen? Pin
gentleguy7-Jan-08 19:47
gentleguy7-Jan-08 19:47 
Generalcoding for x and y coordinates detection Pin
student867-Jan-08 14:09
student867-Jan-08 14:09 
QuestionRe: coding for x and y coordinates detection Pin
Mark Salsbery7-Jan-08 14:19
Mark Salsbery7-Jan-08 14:19 
GeneralRe: coding for x and y coordinates detection Pin
student867-Jan-08 14:26
student867-Jan-08 14:26 
GeneralRe: coding for x and y coordinates detection Pin
Mark Salsbery7-Jan-08 14:36
Mark Salsbery7-Jan-08 14:36 
GeneralRe: coding for x and y coordinates detection Pin
student867-Jan-08 14:49
student867-Jan-08 14:49 
GeneralRe: coding for x and y coordinates detection Pin
Mark Salsbery7-Jan-08 15:10
Mark Salsbery7-Jan-08 15:10 
QuestionHow to use the same class for two dialogs? (avoiding IDD clash...) Pin
@largeinsd7-Jan-08 12:00
@largeinsd7-Jan-08 12:00 
Hi,

I am creating a class for a dialog that can be used either in modal or modeless form, and I would like to use them both at the same time in a dialog-based app.

The complication is that the modal form and the modeless form use different resources (modal form has an 'OK' and 'Cancel' button, modeless does not) wondering if it's possible to use them in the same application since VS2005 puts the following line in CDialog-derived classes:

[code]

// Dialog Data
enum { IDD = IDD_DX9MATERIAL_DIALOG };

[/code]

which seems to tie the class to the dialog, no? Is it not possible to the use the same class for two dialogs? Or should I just create another version of the class for the two types of docs?

Thanks - @LRG
AnswerRe: How to use the same class for two dialogs? (avoiding IDD clash...) Pin
Mark Salsbery7-Jan-08 13:03
Mark Salsbery7-Jan-08 13:03 
GeneralRe: How to use the same class for two dialogs? (avoiding IDD clash...) Pin
@largeinsd7-Jan-08 13:18
@largeinsd7-Jan-08 13:18 
GeneralRe: How to use the same class for two dialogs? (avoiding IDD clash...) Pin
Maxwell Chen7-Jan-08 21:18
Maxwell Chen7-Jan-08 21:18 
GeneralRe: How to use the same class for two dialogs? (avoiding IDD clash...) Pin
Mark Salsbery8-Jan-08 9:29
Mark Salsbery8-Jan-08 9:29 
GeneralRe: How to use the same class for two dialogs? (avoiding IDD clash...) Pin
Maxwell Chen8-Jan-08 16:07
Maxwell Chen8-Jan-08 16:07 
GeneralRe: How to use the same class for two dialogs? (avoiding IDD clash...) Pin
Mark Salsbery9-Jan-08 6:35
Mark Salsbery9-Jan-08 6:35 
Questionhow cai i get cpu temperature without wmi Pin
lgbean7-Jan-08 10:32
lgbean7-Jan-08 10:32 
AnswerUhm... Thermometer? Pin
CPallini7-Jan-08 11:18
mveCPallini7-Jan-08 11:18 
AnswerRe: how cai i get cpu temperature without wmi Pin
Hamid_RT7-Jan-08 18:14
Hamid_RT7-Jan-08 18:14 
GeneralWinInet: Open an URL simulating HTML Form POST Pin
Nyarlatotep7-Jan-08 8:56
Nyarlatotep7-Jan-08 8:56 
GeneralCOleDateTime and SetRange Pin
littleGreenDude7-Jan-08 7:00
littleGreenDude7-Jan-08 7:00 
QuestionRe: COleDateTime and SetRange Pin
David Crow7-Jan-08 7:04
David Crow7-Jan-08 7:04 
GeneralRe: COleDateTime and SetRange Pin
littleGreenDude7-Jan-08 7:08
littleGreenDude7-Jan-08 7:08 
QuestionRe: COleDateTime and SetRange Pin
David Crow7-Jan-08 7:33
David Crow7-Jan-08 7:33 
GeneralRe: COleDateTime and SetRange Pin
littleGreenDude7-Jan-08 8:00
littleGreenDude7-Jan-08 8:00 
QuestionRe: COleDateTime and SetRange Pin
David Crow7-Jan-08 8:07
David Crow7-Jan-08 8:07 
GeneralRe: COleDateTime and SetRange Pin
littleGreenDude7-Jan-08 8:14
littleGreenDude7-Jan-08 8:14 

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.