|
-
April 10th, 2008, 07:40 AM
#1
[SOLVED] Calling cdialog function from a subclassed control
I am not very pratical with classes interaction and I would like to know why if I declare a CDialog member variable into my subclassed control's class, visual studio gives weird errors like error C2065: 'IDD_MY_DIALOG' : undeclared identifier
Better explanation:
I have a mfc dialog with its nice class CMyDialog and all handlers.. OnInitDialog.. OnCancel... etc...
I have a control subclassed to something.. CStatic for example, so I have a class for this control derived from CStatic, and I'll call CMyCustomLabel
Why if I try to
#include "MyDialog.h"
into MyCustomLabel.h, visual studio starts to give me a lot of strange errors?
How do I call a function inside CMyDialog from a function inside CMyCustomLabel ??
Can't understand this problem..
Last edited by NasterMain; April 10th, 2008 at 02:47 PM.
Reason: Problem Solved Brilliantly
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|