Click here to Skip to main content
16,012,025 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: arrays Pin
Jon Hulatt7-Feb-02 4:37
Jon Hulatt7-Feb-02 4:37 
GeneralRe: arrays Pin
Carlos Antollini7-Feb-02 3:08
Carlos Antollini7-Feb-02 3:08 
GeneralRe: arrays Pin
Christian Graus7-Feb-02 9:47
protectorChristian Graus7-Feb-02 9:47 
General.obj to .cpp file conversion.. Pin
Neha7-Feb-02 0:42
Neha7-Feb-02 0:42 
GeneralRe: .obj to .cpp file conversion.. Pin
Nish Nishant7-Feb-02 0:45
sitebuilderNish Nishant7-Feb-02 0:45 
GeneralRe: .obj to .cpp file conversion.. Pin
Neha7-Feb-02 0:51
Neha7-Feb-02 0:51 
GeneralRe: .obj to .cpp file conversion.. Pin
Atul Dharne7-Feb-02 3:37
Atul Dharne7-Feb-02 3:37 
GeneralWP_MINBUTTON Pin
Swinefeaster6-Feb-02 23:30
Swinefeaster6-Feb-02 23:30 
Hi,

I've been banging my head against the wall for hours because of this one. I have figured out how to draw a minimize button, using the WP_MINBUTTON part id and Theme->DrawBackground(). Now this only draws the button as it should look when the app is in focus, but what about when the app is not in focus? I haven't been able to find any way to do this anywhere in the docs. Any ideas?

Here's my code:
(note that this is using the theme wrapper class from the article http://www.codeproject.com/useritems/themewrapper.asp)

Theme = new cTheme(GetSafeHwnd(), L"WINDOW");

....

int stateId = MINBS_NORMAL;

if(IsPressed())
{
stateId = MINBS_PUSHED;
}
else if(IsHot())
{
stateId = MINBS_HOT;
}
else
{
stateId = MINBS_NORMAL;
}

if(Theme)
{
Theme->DrawBackground(Dc.m_hDC, WP_MINBUTTON, stateId, &ClientRect,
NULL);
}
else
{
// Original painting.
}


Thanks!

swinefeaster


Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
GeneralCRichEditView Pin
Mazdak6-Feb-02 22:09
Mazdak6-Feb-02 22:09 
GeneralModify data in a CCombobox Pin
Neha6-Feb-02 18:56
Neha6-Feb-02 18:56 
GeneralRe: Modify data in a CCombobox Pin
Ravi Bhavnani6-Feb-02 19:38
professionalRavi Bhavnani6-Feb-02 19:38 
GeneralRe: Modify data in a CCombobox Pin
Neha6-Feb-02 19:39
Neha6-Feb-02 19:39 
GeneralRe: Modify data in a CCombobox Pin
Michael Dunn6-Feb-02 19:40
sitebuilderMichael Dunn6-Feb-02 19:40 
GeneralRe: Modify data in a CCombobox Pin
Neha6-Feb-02 19:40
Neha6-Feb-02 19:40 
GeneralRe: Modify data in a CCombobox Pin
Rick York6-Feb-02 19:50
mveRick York6-Feb-02 19:50 
GeneralRe: Modify data in a CCombobox Pin
Neha6-Feb-02 19:50
Neha6-Feb-02 19:50 
Questionconstructors/destructors inline...? Pin
alex.barylski6-Feb-02 18:39
alex.barylski6-Feb-02 18:39 
AnswerRe: constructors/destructors inline...? Pin
Christian Graus6-Feb-02 18:54
protectorChristian Graus6-Feb-02 18:54 
AnswerRe: constructors/destructors inline...? Pin
Tim Smith7-Feb-02 2:34
Tim Smith7-Feb-02 2:34 
GeneralRe: constructors/destructors inline...? Pin
alex.barylski7-Feb-02 12:01
alex.barylski7-Feb-02 12:01 
GeneralListView display after loading Pin
Wayne Janaway6-Feb-02 16:45
Wayne Janaway6-Feb-02 16:45 
GeneralA Problem,thanks! Pin
wabc6-Feb-02 16:25
wabc6-Feb-02 16:25 
GeneralRe: A Problem,thanks! Pin
56789012346-Feb-02 21:21
56789012346-Feb-02 21:21 
GeneralRe: A Problem,thanks! Pin
wabc6-Feb-02 21:55
wabc6-Feb-02 21:55 
GeneralRe: A Problem,thanks! Pin
56789012346-Feb-02 21:57
56789012346-Feb-02 21: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.