Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: Heap corruption problem after AfxBeginThread? PinmemberStephen Hewitt25-Nov-12 7:04 
QuestionWhat are the steps required, i will connect to the SQL named instance server using the "CDatabase::OpenEx" by using the DNS Name? Pinmemberlucky_122122-Nov-12 0:41 
AnswerRe: What are the steps required, i will connect to the SQL named instance server using the "CDatabase::OpenEx" by using the DNS Name? PinmvpRichard MacCutchan22-Nov-12 3:38 
QuestionChanging Dialog Button Color at runTime Pinmemberyogeshs20-Nov-12 23:07 
Hello Friends
 
I am creating a win32 based application. Creating A Dialog with TabControl and Buttons using BS_OWNERDRAW as i want to set the color of button.
 
On WM_DRAWITEM, I implemented a function to set the color of button[ by getting all dc and rect of button and then fillrect).
So,when I open the Dialog, it is showing Initial Color Fine.
 
Now,I want to change the colors of button when I change the Tab. But,I am not able to find the Event or same WM_DRAWITEM will change button color on changing tab.
 
So,On Tab change,button colors remain same. How can I change the button color on Tab change.
 
Thanks & Regards
Yogesh
AnswerRe: Changing Dialog Button Color at runTime Pinmembermanoranjan21-Nov-12 0:05 
GeneralRe: Changing Dialog Button Color at runTime Pinmemberyogeshs21-Nov-12 0:37 
GeneralRe: Changing Dialog Button Color at runTime Pinmembermanoranjan21-Nov-12 1:12 
GeneralRe: Changing Dialog Button Color at runTime Pinmemberyogeshs21-Nov-12 18:56 
GeneralRe: Changing Dialog Button Color at runTime Pinmembermanoranjan21-Nov-12 19:40 
QuestionPng Image button problem. Pingroupyu-jian20-Nov-12 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 24 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid