Click here to Skip to main content
16,004,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPointers Pin
6-Jan-02 18:48
suss6-Jan-02 18:48 
GeneralRe: Pointers Pin
Nish Nishant6-Jan-02 18:57
sitebuilderNish Nishant6-Jan-02 18:57 
GeneralRe: Pointers Pin
6-Jan-02 19:19
suss6-Jan-02 19:19 
GeneralRe: Pointers Pin
6-Jan-02 19:21
suss6-Jan-02 19:21 
GeneralRe: Pointers Pin
Nish Nishant6-Jan-02 20:38
sitebuilderNish Nishant6-Jan-02 20:38 
Generalre. Out of scope Pin
7-Jan-02 2:54
suss7-Jan-02 2:54 
Questionwhat's the usage of SetBkColor? Pin
AnonymousBabe@usa.net6-Jan-02 17:29
AnonymousBabe@usa.net6-Jan-02 17:29 
AnswerRe: what's the usage of SetBkColor? Pin
Lim Bio Liong6-Jan-02 17:52
Lim Bio Liong6-Jan-02 17:52 
Hello ooze,

SetBkColor() is generally used in GDI operations where the use of a Pen is involved (e.g. TextOut(), DrawText(), etc).

If you want to programmatically control the background color of a window, set the "hbrBackground" member of your window's WNDCLASS structure to NULL, and then process the window's WM_ERASEBKGND message. See the Win32 API documentation on WM_ERASEBKGND for more details.

However, to actually perform the coloring operation, you'll still have to use functions like FillRect() etc.

Hope the above info will be helpful to you, ooze.

Regards,
Bio.


GeneralRe: what's the usage of SetBkColor? Pin
AnonymousBabe@usa.net6-Jan-02 18:07
AnonymousBabe@usa.net6-Jan-02 18:07 
Questionwhat's the use of these functions? Pin
leezy_20006-Jan-02 14:45
leezy_20006-Jan-02 14:45 
AnswerRe: what's the use of these functions? Pin
Christian Graus6-Jan-02 15:01
protectorChristian Graus6-Jan-02 15:01 
GeneralBizarre Round Error Pin
AJ1236-Jan-02 11:50
AJ1236-Jan-02 11:50 
GeneralRe: Bizarre Round Error Pin
AJ1236-Jan-02 11:54
AJ1236-Jan-02 11:54 
GeneralRe: Bizarre Round Error Pin
Christian Graus6-Jan-02 13:13
protectorChristian Graus6-Jan-02 13:13 
GeneralRe: Bizarre Round Error Pin
Daniel Turini6-Jan-02 14:04
Daniel Turini6-Jan-02 14:04 
GeneralRe: Bizarre Round Error Pin
Christian Graus6-Jan-02 15:07
protectorChristian Graus6-Jan-02 15:07 
GeneralRe: Bizarre Round Error Pin
Tim Smith6-Jan-02 16:57
Tim Smith6-Jan-02 16:57 
QuestionMFC File I/O? Pin
6-Jan-02 10:28
suss6-Jan-02 10:28 
AnswerRe: MFC File I/O? Pin
Giles6-Jan-02 11:45
Giles6-Jan-02 11:45 
AnswerRe: MFC File I/O? Pin
Not Active6-Jan-02 13:35
mentorNot Active6-Jan-02 13:35 
Generalpainting problem Pin
Wizard_016-Jan-02 5:34
Wizard_016-Jan-02 5:34 
GeneralRe: painting problem Pin
l a u r e n6-Jan-02 7:22
l a u r e n6-Jan-02 7:22 
GeneralRe: painting problem Pin
6-Jan-02 7:43
suss6-Jan-02 7:43 
GeneralRe: painting problem Pin
Christian Graus6-Jan-02 10:46
protectorChristian Graus6-Jan-02 10:46 
GeneralDetermine whether connected to internet Pin
Jase Jennings6-Jan-02 4:10
Jase Jennings6-Jan-02 4:10 

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.