Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp using sockets Pin
REU14-Sep-05 1:12
REU14-Sep-05 1:12 
QuestionI've written a service and it can't access mapped network drives. Why? Pin
Member 290251014-Sep-05 1:01
Member 290251014-Sep-05 1:01 
Questionword moving Pin
Balaji Krishna14-Sep-05 0:47
Balaji Krishna14-Sep-05 0:47 
AnswerRe: word moving Pin
Cedric Moonen14-Sep-05 1:02
Cedric Moonen14-Sep-05 1:02 
AnswerRe: word moving Pin
Eytukan14-Sep-05 3:05
Eytukan14-Sep-05 3:05 
GeneralRe: word moving Pin
ThatsAlok14-Sep-05 18:20
ThatsAlok14-Sep-05 18:20 
QuestionAbout Dialog Box : Plz Help Urgent Pin
parims14-Sep-05 0:26
parims14-Sep-05 0:26 
AnswerRe: About Dialog Box : Plz Help Urgent Pin
khan++14-Sep-05 0:42
khan++14-Sep-05 0:42 
parims wrote:
Plz Give the code to draw colourful dialog boxes.
means , to change back ground color and fore ground.
Plz give GUI of dialog boxes.


OK.
Handle the OnEraseBkgnd() like this:
.... OnEraseBkgnd(CDC* pDC)
{
CRect rect;
GetClientRect(&rect);
pDC->FillSolidRect(&rect,RGB(255,0,0));
return TRUE;
}
The events list for a dialog box does not normally display this message to be handled in VC6. You need to change the "Filter for messages.." combo box to "Window".
Now the background will be bright Red.
To change the foreground, do you mean Static text etc?
Then you will need to subclass the CStatic, and handle its painting yourself. You can find many CStatic samples here on CP.


this is this.
AnswerRe: About Dialog Box : Plz Help Urgent Pin
toxcct14-Sep-05 0:43
toxcct14-Sep-05 0:43 
Questionscaling.....help Pin
Raza568014-Sep-05 0:19
Raza568014-Sep-05 0:19 
AnswerRe: scaling.....help Pin
Bob Stanneveld14-Sep-05 0:51
Bob Stanneveld14-Sep-05 0:51 
QuestionBacking up the windows Registry Pin
rajeevktripathi14-Sep-05 0:17
rajeevktripathi14-Sep-05 0:17 
AnswerRe: Backing up the windows Registry Pin
22491714-Sep-05 1:31
22491714-Sep-05 1:31 
QuestionRe: Backing up the windows Registry Pin
ThatsAlok14-Sep-05 1:44
ThatsAlok14-Sep-05 1:44 
AnswerRe: Backing up the windows Registry Pin
22491714-Sep-05 2:18
22491714-Sep-05 2:18 
GeneralRe: Backing up the windows Registry Pin
rajeevktripathi14-Sep-05 2:35
rajeevktripathi14-Sep-05 2:35 
GeneralRe: Backing up the windows Registry Pin
David Crow14-Sep-05 3:22
David Crow14-Sep-05 3:22 
AnswerRe: Backing up the windows Registry Pin
David Crow14-Sep-05 3:16
David Crow14-Sep-05 3:16 
QuestionRe: Backing up the windows Registry Pin
ThatsAlok14-Sep-05 18:10
ThatsAlok14-Sep-05 18:10 
QuestionRe: Backing up the windows Registry Pin
rajeevktripathi14-Sep-05 18:49
rajeevktripathi14-Sep-05 18:49 
AnswerRe: Backing up the windows Registry Pin
David Crow15-Sep-05 3:10
David Crow15-Sep-05 3:10 
GeneralRe: Backing up the windows Registry Pin
ThatsAlok15-Sep-05 3:36
ThatsAlok15-Sep-05 3:36 
GeneralRe: Backing up the windows Registry Pin
David Crow19-Sep-05 3:19
David Crow19-Sep-05 3:19 
GeneralRe: Backing up the windows Registry Pin
ThatsAlok19-Sep-05 3:27
ThatsAlok19-Sep-05 3:27 
QuestionWindows Service with network access Pin
Anonymous14-Sep-05 0:05
Anonymous14-Sep-05 0:05 

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.