Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PE file format + relocations Pin
zildjohn016-Apr-08 11:58
zildjohn016-Apr-08 11:58 
GeneralRe: PE file format + relocations Pin
Stephen Hewitt6-Apr-08 18:47
Stephen Hewitt6-Apr-08 18:47 
QuestionSend a program to another PC & execute it there ..... Pin
tina->newcoder4-Apr-08 9:17
tina->newcoder4-Apr-08 9:17 
GeneralRe: Send a program to another PC & execute it there ..... Pin
David Crow4-Apr-08 9:54
David Crow4-Apr-08 9:54 
GeneralRe: Send a program to another PC & execute it there ..... Pin
led mike4-Apr-08 11:20
led mike4-Apr-08 11:20 
GeneralRe: Send a program to another PC & execute it there ..... Pin
Eytukan5-Apr-08 7:52
Eytukan5-Apr-08 7:52 
GeneralRe: Send a program to another PC & execute it there ..... Pin
Hamid_RT7-Apr-08 20:54
Hamid_RT7-Apr-08 20:54 
GeneralCStatic-Derived class: painting background Pin
42884-Apr-08 6:53
42884-Apr-08 6:53 
Hi all,
I need to paint the background of a CStatic control created dynamically this way:

CUnknownCtrl* pUnknown;
pUnknown = new CUnknownCtrl;
pUnknown->Create("Text", SS_CENTER | WS_CHILD | WS_VISIBLE | WS_GROUP, CRect(11,35,360,526), this, 0x31);


Notice that CUnknownCtrl is a CStatic-derived mfc class.

I can't figure out how to set background color of the label created with this code, someone can help me?
Calling OnCtlColor inside CUnknownCtrl won't even be executed and OnPaint fails. Some idea?

Thanks for advance

---

GeneralRe: CStatic-Derived class: painting background Pin
Nitheesh George4-Apr-08 7:06
Nitheesh George4-Apr-08 7:06 
GeneralRe: CStatic-Derived class: painting background Pin
Gary R. Wheeler6-Apr-08 1:45
Gary R. Wheeler6-Apr-08 1:45 
GeneralRe: CStatic-Derived class: painting background Pin
led mike4-Apr-08 7:09
led mike4-Apr-08 7:09 
GeneralRe: CStatic-Derived class: painting background Pin
42884-Apr-08 7:28
42884-Apr-08 7:28 
GeneralRe: CStatic-Derived class: painting background Pin
led mike4-Apr-08 7:59
led mike4-Apr-08 7:59 
GeneralRe: CStatic-Derived class: painting background Pin
42884-Apr-08 8:33
42884-Apr-08 8:33 
GeneralRe: CStatic-Derived class: painting background Pin
Hamid_RT7-Apr-08 20:52
Hamid_RT7-Apr-08 20:52 
GeneralRe: CStatic-Derived class: painting background Pin
42888-Apr-08 7:23
42888-Apr-08 7:23 
GeneralRe: CStatic-Derived class: painting background Pin
Hamid_RT8-Apr-08 8:00
Hamid_RT8-Apr-08 8:00 
QuestionA very basic question about ODBC Pin
Joseph Marzbani4-Apr-08 5:34
Joseph Marzbani4-Apr-08 5:34 
GeneralRe: A very basic question about ODBC Pin
David Crow4-Apr-08 6:04
David Crow4-Apr-08 6:04 
GeneralRe: A very basic question about ODBC Pin
Mark Salsbery4-Apr-08 7:18
Mark Salsbery4-Apr-08 7:18 
GeneralChump Is Stumped By VARIANT Problem Pin
Eurosid4-Apr-08 4:34
Eurosid4-Apr-08 4:34 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
led mike4-Apr-08 5:04
led mike4-Apr-08 5:04 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
Eurosid4-Apr-08 5:21
Eurosid4-Apr-08 5:21 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
led mike4-Apr-08 5:32
led mike4-Apr-08 5:32 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
Eurosid4-Apr-08 5:49
Eurosid4-Apr-08 5:49 

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.