Click here to Skip to main content
15,915,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert BSTR into LPSTR Pin
Michael Dunn5-Oct-00 7:19
sitebuilderMichael Dunn5-Oct-00 7:19 
QuestionHow to change the language in my application Pin
Anonymous5-Oct-00 3:09
Anonymous5-Oct-00 3:09 
QuestionHow to IMPLEMENT a Mutex in C++ ? Pin
GBO5-Oct-00 2:06
GBO5-Oct-00 2:06 
AnswerRe: How to IMPLEMENT a Mutex in C++ ? Pin
Erik Funkenbusch5-Oct-00 7:52
Erik Funkenbusch5-Oct-00 7:52 
GeneralUpdate: How to IMPLEMENT a Mutex in C++ ? (Assembler Guru required) Pin
GBO5-Oct-00 21:42
GBO5-Oct-00 21:42 
GeneralRe: Update: How to IMPLEMENT a Mutex in C++ ? (Assembler Guru required) Pin
GBO5-Oct-00 23:32
GBO5-Oct-00 23:32 
QuestionFace Recognition Software? Pin
Jeremy Davis4-Oct-00 23:19
Jeremy Davis4-Oct-00 23:19 
GeneralHelp with colors in MFC, damn I'm bad at painting :) Pin
Fredrik4-Oct-00 21:53
Fredrik4-Oct-00 21:53 
Hello!

I have been trying to set the color of a slider I created with MFC. I managed to color it's background but didn't manage to change the slider "knob" or "path" color, how is this done?

I also have a Combobox wich I would like to change the color of as well, but it didn't work out either. I tried to check the "owner drawn and with strings on the Combobox, but I still couldn't change the colors and over the text was the picture of my icon, hmm...

Then there's the frame of the window, I beieve I should override OnNcPaint() function for this but either I'm wrong or doig it wrong. =)

And changing the color of the entire application menu would be very nice if I could do this too.

I tried to override OnPaint, but it didn't work... I could use some samples of code, since I seem to be doing something wrong when I don't get it to work. =) I heard something about "changeing the thumb and track colors using custom draw." how is this done in code?

Thanks,

/Fredrik
GeneralRe: Help with colors in MFC, damn I'm bad at painting :) Pin
Jeremy Davis4-Oct-00 22:13
Jeremy Davis4-Oct-00 22:13 
GeneralAnyone got any idea of how to do this? Pin
Fredrik5-Oct-00 21:34
Fredrik5-Oct-00 21:34 
GeneralRe: Anyone got any idea of how to do this? Pin
Jeremy Davis5-Oct-00 22:22
Jeremy Davis5-Oct-00 22:22 
QuestionHow to hide main dialog Pin
Crystal4-Oct-00 17:44
Crystal4-Oct-00 17:44 
AnswerRe: How to hide main dialog Pin
Sam Hobbs4-Oct-00 18:30
Sam Hobbs4-Oct-00 18:30 
GeneralSTL Collection Classes Pin
paulb4-Oct-00 17:19
paulb4-Oct-00 17:19 
GeneralRe: STL Collection Classes Pin
Erik Funkenbusch5-Oct-00 8:03
Erik Funkenbusch5-Oct-00 8:03 
GeneralRe: STL Collection Classes Pin
Erik Funkenbusch5-Oct-00 8:17
Erik Funkenbusch5-Oct-00 8:17 
GeneralRe: STL Collection Classes Pin
Norbert Muench6-Oct-00 3:29
sussNorbert Muench6-Oct-00 3:29 
GeneralCustomize Open File Dialog Pin
Farzad Bakhtiar4-Oct-00 17:01
sussFarzad Bakhtiar4-Oct-00 17:01 
GeneralToolBar Pin
kin4-Oct-00 16:21
kin4-Oct-00 16:21 
GeneralRe: ToolBar Pin
Member 12089655-Oct-00 11:45
Member 12089655-Oct-00 11:45 
GeneralSize of the Single Document Pin
sunny4-Oct-00 14:28
sunny4-Oct-00 14:28 
GeneralRe: Size of the Single Document Pin
Michael Dunn4-Oct-00 15:48
sitebuilderMichael Dunn4-Oct-00 15:48 
GeneralRe: Size of the Single Document Pin
Sam Hobbs4-Oct-00 17:37
Sam Hobbs4-Oct-00 17:37 
QuestionHow to Get Icon From Running Process Pin
#realJSOP4-Oct-00 9:57
professional#realJSOP4-Oct-00 9:57 
QuestionHow to Get Icon From Running Process Pin
#realJSOP4-Oct-00 9:57
professional#realJSOP4-Oct-00 9:57 

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.