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

C / C++ / MFC

 
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 
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 
@largeinsd wrote:
which seems to tie the class to the dialog, no?


Yes. It's only source code....feel free to alter it for your own use Smile | :)

The IDD is used only one place by default - it is passed to the CDialog
constructor. With a little modification you can pass whatever resource ID
you want to the base class.

Another alternative in this case, is to use one resource and show or hide the two
buttons depending on if the dialog is used modal or modeless.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
QuestionRe: COleDateTime and SetRange Pin
David Crow7-Jan-08 8:29
David Crow7-Jan-08 8:29 

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.