Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC Serialization Questions.. Pin
Cliff Hatch1-Jan-06 0:53
Cliff Hatch1-Jan-06 0:53 
GeneralRe: MFC Serialization Questions.. Pin
Cliff Hatch2-Jan-06 0:54
Cliff Hatch2-Jan-06 0:54 
QuestionHow to resize child window Pin
shivditya30-Dec-05 5:24
shivditya30-Dec-05 5:24 
AnswerRe: How to resize child window Pin
John R. Shaw31-Dec-05 18:55
John R. Shaw31-Dec-05 18:55 
Questionfile transfer time prblm Pin
Orell30-Dec-05 2:24
Orell30-Dec-05 2:24 
AnswerRe: file transfer time prblm Pin
Prakash Nadar30-Dec-05 5:14
Prakash Nadar30-Dec-05 5:14 
QuestionHow to check the config Pin
nripun30-Dec-05 2:11
nripun30-Dec-05 2:11 
AnswerRe: How to check the config Pin
sunit530-Dec-05 2:28
sunit530-Dec-05 2:28 
GeneralRe: How to check the config Pin
sunit530-Dec-05 2:33
sunit530-Dec-05 2:33 
GeneralRe: How to check the config Pin
nripun30-Dec-05 2:41
nripun30-Dec-05 2:41 
GeneralRe: How to check the config Pin
sunit530-Dec-05 2:58
sunit530-Dec-05 2:58 
GeneralRe: How to check the config Pin
nripun30-Dec-05 5:23
nripun30-Dec-05 5:23 
GeneralRe: How to check the config Pin
sunit530-Dec-05 3:18
sunit530-Dec-05 3:18 
QuestionHow help file(.hlp) can be integrated in my program Pin
mikobi30-Dec-05 1:46
mikobi30-Dec-05 1:46 
QuestionOLE 2.0 DB Problem Pin
ShelJo30-Dec-05 1:39
ShelJo30-Dec-05 1:39 
QuestionTo open com port thrugh window CE emulator Pin
birajendu30-Dec-05 1:25
birajendu30-Dec-05 1:25 
QuestionCustom Caption in XP Pin
Dave Regan30-Dec-05 1:25
Dave Regan30-Dec-05 1:25 
AnswerRe: Custom Caption in XP Pin
Owner drawn30-Dec-05 1:33
Owner drawn30-Dec-05 1:33 
QuestionPrint Preview Architecutre Pin
Identity Undisclosed30-Dec-05 1:22
Identity Undisclosed30-Dec-05 1:22 
Questionplz help me out Pin
whizano30-Dec-05 1:21
whizano30-Dec-05 1:21 
AnswerRe: plz help me out Pin
Owner drawn30-Dec-05 1:36
Owner drawn30-Dec-05 1:36 
Generalits lik dis Pin
whizano30-Dec-05 20:41
whizano30-Dec-05 20:41 
QuestionHow to find whether a cable is connected to USB port? Pin
call_v_s30-Dec-05 1:12
call_v_s30-Dec-05 1:12 
AnswerRe: How to find whether a cable is connected to USB port? Pin
John R. Shaw31-Dec-05 19:14
John R. Shaw31-Dec-05 19:14 
QuestionDynamic adding of controls to CDialog-based class (MFC) Pin
mankeyrabbit30-Dec-05 0:52
mankeyrabbit30-Dec-05 0:52 
Hi, I couldn't tell which forum to post this in, so I hope I got the right one!

Basically I'm creating an app where the entire thing is controlled by scripts. I want to be able to create a window on-the-fly, with controls added via scripting. The problem is I'm also trying to do it in MFC.

I've had a look at the message map, and realised it's static, so even if i could hack into it and change some entries dynamically, I'd still have to create a different class for each different window, which is not what i want.

I've also had a look at overriding the WindowProc() function in my dialog, and dispatching WM_PAINT, WM_NCPAINT, and WM_DRAWITEM messages to my list of controls. Although this seems the most promising approach, the controls don't draw. (The OnPaint() handlers ARE called successfully though.) I usually wouldnt just die there and post on a forum but i actually have no idea how to debug this!

Any help would be MUCH appreciated!

James Molloy

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.