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

C / C++ / MFC

 
GeneralDialog in ATL object Pin
Magesh K.1-Jul-00 3:30
sussMagesh K.1-Jul-00 3:30 
GeneralRe: Dialog in ATL object Pin
Mike Dunn1-Jul-00 9:18
Mike Dunn1-Jul-00 9:18 
GeneralRe: Dialog in ATL object Pin
Magesh K.2-Jul-00 2:05
sussMagesh K.2-Jul-00 2:05 
GeneralRe: Dialog in ATL object Pin
Mike Dunn2-Jul-00 9:22
Mike Dunn2-Jul-00 9:22 
GeneralKey strokes Pin
Member 37471-Jul-00 1:28
Member 37471-Jul-00 1:28 
GeneralRe: Key strokes Pin
Mike Dunn1-Jul-00 9:22
Mike Dunn1-Jul-00 9:22 
GeneralInteresting Dialog problem Pin
Member 238630-Jun-00 17:13
Member 238630-Jun-00 17:13 
GeneralRe: Interesting Dialog problem Pin
Blake Miller30-Jun-00 18:09
Blake Miller30-Jun-00 18:09 
Make a base class for all the objects.
Put a member variable in it to represent the current ype.
Make an enumeration for all your types.
Derive all your 'object' classes from this base type.
Use the value of the 'type' data item to let your OnRender code know what was selected.
The diaog can also use that 'type' variable to know what controls to display to user, or else how to limit the data ranges where user might be entering numbers.
You could do the saem thing with C structures, always make the first element of the object structures this type.
Then if you have a pointer to some of this memory, you can cast the pointer to this 'type' variable and access the data structure's object type.

GeneralRe: Interesting Dialog problem Pin
Member 238630-Jun-00 18:53
Member 238630-Jun-00 18:53 
GeneralRe: Interesting Dialog problem Pin
Magesh K.2-Jul-00 2:11
sussMagesh K.2-Jul-00 2:11 
GeneralProblem solved Pin
Member 23862-Jul-00 6:21
Member 23862-Jul-00 6:21 
Questionhow to set font (ATL) Pin
Chris30-Jun-00 10:38
Chris30-Jun-00 10:38 
AnswerRe: how to set font (ATL) Pin
Alex Gorev30-Jun-00 11:40
Alex Gorev30-Jun-00 11:40 
GeneralNew Project Wizard Pin
David Leikis30-Jun-00 10:22
David Leikis30-Jun-00 10:22 
GeneralA simple template question Pin
juskett30-Jun-00 4:53
juskett30-Jun-00 4:53 
GeneralRe: A simple template question Pin
Mike Dunn1-Jul-00 19:02
Mike Dunn1-Jul-00 19:02 
GeneralRe: A simple template question Pin
Mike Dunn3-Jul-00 8:25
Mike Dunn3-Jul-00 8:25 
GeneralA simple template question Pin
juskett30-Jun-00 4:51
juskett30-Jun-00 4:51 
GeneralRich Ink Control (VCCE 6.0) Pin
Anthony Pantekoek30-Jun-00 3:44
Anthony Pantekoek30-Jun-00 3:44 
GeneralMoving a CComboBox Pin
Stephanie Rigel30-Jun-00 3:32
sussStephanie Rigel30-Jun-00 3:32 
GeneralRe: Moving a CComboBox Pin
Uwe Keim30-Jun-00 5:59
sitebuilderUwe Keim30-Jun-00 5:59 
GeneralRe: Moving a CComboBox Pin
Stephanie Rigel30-Jun-00 6:32
sussStephanie Rigel30-Jun-00 6:32 
GeneralRe: Moving a CComboBox Pin
Blake Miller30-Jun-00 6:45
Blake Miller30-Jun-00 6:45 
GeneralRe: Moving a CComboBox Pin
Stephanie Rigel30-Jun-00 7:11
sussStephanie Rigel30-Jun-00 7:11 
GeneralRe: Moving a CComboBox Pin
Sam Hobbs30-Jun-00 10:35
Sam Hobbs30-Jun-00 10:35 

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.