Click here to Skip to main content
15,890,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
AnswerRe: Dynamic adding of controls to CDialog-based class (MFC) Pin
BadKarma30-Dec-05 11:07
BadKarma30-Dec-05 11:07 
QuestionJust a quick one Pin
thes3cr3t130-Dec-05 0:47
thes3cr3t130-Dec-05 0:47 
AnswerRe: Just a quick one Pin
Owner drawn30-Dec-05 1:10
Owner drawn30-Dec-05 1:10 
AnswerRe: Just a quick one Pin
Prakash Nadar30-Dec-05 5:06
Prakash Nadar30-Dec-05 5:06 
AnswerRe: Just a quick one Pin
ToxickZero30-Dec-05 9:41
ToxickZero30-Dec-05 9:41 
Questionbackgound processes Pin
Tonichka29-Dec-05 21:35
Tonichka29-Dec-05 21:35 
AnswerRe: backgound processes Pin
Prakash Nadar29-Dec-05 23:05
Prakash Nadar29-Dec-05 23:05 
GeneralRe: backgound processes Pin
Tonichka29-Dec-05 23:22
Tonichka29-Dec-05 23:22 
GeneralRe: backgound processes Pin
Prakash Nadar29-Dec-05 23:27
Prakash Nadar29-Dec-05 23:27 
GeneralRe: backgound processes Pin
Tonichka29-Dec-05 23:34
Tonichka29-Dec-05 23:34 
GeneralRe: backgound processes Pin
Prakash Nadar29-Dec-05 23:41
Prakash Nadar29-Dec-05 23:41 
GeneralRe: backgound processes Pin
Tonichka29-Dec-05 23:53
Tonichka29-Dec-05 23:53 
GeneralRe: backgound processes Pin
Prakash Nadar29-Dec-05 23:55
Prakash Nadar29-Dec-05 23:55 
GeneralRe: backgound processes Pin
Tonichka30-Dec-05 0:09
Tonichka30-Dec-05 0:09 
GeneralRe: backgound processes Pin
Bob Flynn30-Dec-05 2:46
Bob Flynn30-Dec-05 2:46 
GeneralRe: backgound processes Pin
Tonichka30-Dec-05 2:59
Tonichka30-Dec-05 2:59 
GeneralRe: backgound processes Pin
Bob Flynn30-Dec-05 3:16
Bob Flynn30-Dec-05 3:16 

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.