Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Owner Drawn Controls

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Win32
Win32  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed Dec 27, 2006 4:57 pm    Post subject: Owner Drawn Controls Reply with quote

CodeGuru: Owner Drawing The Submenu Arrow

"My goal was to simply make disabled custom drawn submenus have
disabled looking submenu arrows, but there seemed to be no obvious
way to do this. In finding a solution, I also found a way to simply do
custom submenu drawing if that is what you want to do also."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Jan 28, 2007 10:00 am    Post subject: Reply with quote

cboard: OwnerDrawn Radio Buttons?

"And do you want that the text you assign to it with SetWindowText
appear left to it like with the real radio button?

How can it recognize the other radio buttons it should be grouped with?

I'm quite done with it Btw, I had to use GWL_USERDATA to deal with
checked states."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Feb 25, 2007 12:02 pm    Post subject: Reply with quote

cboard: Button with both Text and Icon

"To show icon and text, create the button without the BS_ICON flag and
call setimage afterwards to add an image to the text button."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Mar 08, 2007 4:06 pm    Post subject: Reply with quote

RC: The GETDISPINFO notifications tell you what information they want

"In fact the control is really just the middle man between the code that
requested information about an item (via a message like LVM_GETITEM)
and the code that generates it (your LVN_GETDISPINFO handler)."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sat May 19, 2007 6:37 pm    Post subject: Reply with quote

msdn: Visual Styles Reference

DrawFrameControl() becomes DrawThemeBackground() and
DrawEdge() becomes DrawThemeEdge().

Good luck!
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Sep 04, 2007 6:33 pm    Post subject: Reply with quote

CodeGuru: Owner Drawn Menu with Icons (3) (uses toolbar res),
by Brent Corkum

"As you can see I've added the new Office XP drawing style for the menu's.
I just got a machine with Windows XP on it and I noticed that the menu's in
all our applications looked terrible.

Other additions include support for images with greater than 16 colors. The
example contains images with both 256 and 16 million colors. There is also
an option for how to draw disabled options."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed Dec 12, 2007 10:36 pm    Post subject: Reply with quote

RC: When selecting system colors, match but don't mix

"If you're going to combine colors, and you need them to contrast against
each other (for example, because you're going to draw text with them as
the foreground and background colors), choose a pair from one of the rows
above. Do not choose colors from different rows because there is no guarantee
that they will be readable against each other."


Read the comments!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Win32 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group