Click here to Skip to main content
15,913,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: scanf up to tab? Pin
Bhaskar20-Jul-04 23:54
Bhaskar20-Jul-04 23:54 
GeneralRe: scanf up to tab? Pin
Harold Bamford23-Jul-04 11:11
Harold Bamford23-Jul-04 11:11 
GeneralRe: scanf up to tab? Pin
Bhaskar23-Jul-04 21:19
Bhaskar23-Jul-04 21:19 
GeneralRe: scanf up to tab? Pin
Harold Bamford26-Jul-04 7:21
Harold Bamford26-Jul-04 7:21 
GeneralIcon in a minimized APP with a thin dialog Pin
doctorpi20-Jul-04 21:54
doctorpi20-Jul-04 21:54 
Generalfast algorithm linear correlation coeffcient Pin
Anonymous20-Jul-04 21:23
Anonymous20-Jul-04 21:23 
GeneralChanging color of a Button Pin
M Ashok Kumar20-Jul-04 21:19
M Ashok Kumar20-Jul-04 21:19 
GeneralRe: Changing color of a Button Pin
Antti Keskinen20-Jul-04 22:49
Antti Keskinen20-Jul-04 22:49 
First, instead of using standard Windows button controls, go see this article and download the sources.

Then include these sources into your project and convert the necessary buttons to CButtonST type (there are instructions on how to do this in the article). Now, during the OnInitDialog execution, use the control variables of the buttons to call CButtonST::SetColor to set colors for the following indexes: BTNST_COLOR_BK_IN, BTNST_COLOR_BK_OUT, BTNST_COLOR_BK_FOCUS.

These indexes control the background color of the button when 1) mouse is over the button, 2) mouse is outside the button, 3) button has keyboard focus, respectively.

To do what you desire without the CButtonST class, you'd need to paint the buttons completely by yourself. Difficult task, but doable.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Changing color of a Button Pin
umair_hasan20-Jul-04 23:39
umair_hasan20-Jul-04 23:39 
GeneralRe: Changing color of a Button Pin
Ravi Bhavnani21-Jul-04 3:00
professionalRavi Bhavnani21-Jul-04 3:00 
GeneralRe: Changing color of a Button Pin
M Ashok Kumar21-Jul-04 21:44
M Ashok Kumar21-Jul-04 21:44 
Generaldatabase Pin
Anonymous20-Jul-04 20:48
Anonymous20-Jul-04 20:48 
GeneralRe: database Pin
jan larsen20-Jul-04 22:55
jan larsen20-Jul-04 22:55 
Generali want to get a ftp client code example written in socket api for c or c++,who can give me .thanks very much. Pin
bowen.feng20-Jul-04 20:09
bowen.feng20-Jul-04 20:09 
GeneralRe: i want to get a ftp client code example written in socket api for c or c++,who can give me .thanks very much. Pin
ThatsAlok20-Jul-04 20:23
ThatsAlok20-Jul-04 20:23 
GeneralRe: i want to get a ftp client code example written in socket api for c or c++,who can give me .thanks very much. Pin
bowen.feng21-Jul-04 13:44
bowen.feng21-Jul-04 13:44 
GeneralRe: i want to get a ftp client code example written in socket api for c or c++,who can give me .thanks very much. Pin
Henry miller22-Jul-04 7:56
Henry miller22-Jul-04 7:56 
Generalset bitmap into button Pin
mvnevis20-Jul-04 19:48
mvnevis20-Jul-04 19:48 
GeneralRe: set bitmap into button Pin
Bhaskar20-Jul-04 20:10
Bhaskar20-Jul-04 20:10 
GeneralRe: set bitmap into button Pin
David Crow21-Jul-04 7:02
David Crow21-Jul-04 7:02 
GeneralAdd new entries to OE Contacts by code Pin
project_main20-Jul-04 18:41
project_main20-Jul-04 18:41 
GeneralName Mangling. Pin
xcavin20-Jul-04 18:26
xcavin20-Jul-04 18:26 
GeneralRe: Name Mangling. Pin
Antti Keskinen20-Jul-04 23:02
Antti Keskinen20-Jul-04 23:02 
GeneralRe: Name Mangling. Pin
xcavin20-Jul-04 23:11
xcavin20-Jul-04 23:11 
GeneralRe: Name Mangling. Pin
David Crow21-Jul-04 7:07
David Crow21-Jul-04 7:07 

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.