Click here to Skip to main content
15,921,941 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
Stephen Hewitt29-Apr-08 20:07
Stephen Hewitt29-Apr-08 20:07 
QuestionRe: Handle VC++ ATL COM Event in Java Script ?? Pin
garammasala5-May-08 21:07
garammasala5-May-08 21:07 
AnswerRe: Handle VC++ ATL COM Event in Java Script ?? Pin
Stephen Hewitt6-May-08 16:25
Stephen Hewitt6-May-08 16:25 
AnswerRe: Handle VC++ ATL COM Event in Java Script ?? [modified] Pin
garammasala6-May-08 17:38
garammasala6-May-08 17:38 
Generalperformant deserialization from a buffer to a std::Vector‏ Pin
manustone24-Apr-08 3:45
manustone24-Apr-08 3:45 
GeneralRe: performant deserialization from a buffer to a std::Vector‏ Pin
Stuart Dootson28-Apr-08 1:22
professionalStuart Dootson28-Apr-08 1:22 
GeneralRe: performant deserialization from a buffer to a std::Vector‏ Pin
manustone28-Apr-08 5:31
manustone28-Apr-08 5:31 
GeneralA quick question on themes... Pin
Gene OK24-Apr-08 3:01
Gene OK24-Apr-08 3:01 
I am working on a button that has a custom shape, and I wanted to give the user the option to match the button color scheme used by XP. I was planning to fill the button region with a gradient matching the current XP theme.

I asked this question on the Yahoo WTL forum. The answer makes writing a custom shaped button a little more difficult.

I am trying to use theme colors in XP to draw a gradient background
that is not rectangular. I am utilizing atltheme.h to call
GetThemeColor(BP_PUSHBUTTON, PBS_HOT, TMT_GRADIENTCOLOR1, &c). I am
trying to retrieve just one gradient color at the moment. I've tried
using DrawThemeBackground for a button. The colors are correct, but
the shape cannot be changed to fit the region I am filling.

I've discovered that most theme parts do not return gradient colors.
(I am able to get some colors, just not the gradient colors.) Does
anyone know how to retrieve the gradient colors used to draw themed
buttons? Most of the examples I have found hard code the gradient
colors to look like the theme colors.


The answer I received:
Themed buttons are actually drawn using a template bitmap, so there are no
gradient colours to retrieve.


Is this documented some place? I searched using google and I've had no luck locating any references to bitmap templates used for buttons.
AnswerRe: A quick question on themes... Pin
Gene OK24-Apr-08 4:54
Gene OK24-Apr-08 4:54 
GeneralUsing VB.NET dll in VC++ Pin
ritz123424-Apr-08 0:17
ritz123424-Apr-08 0:17 
GeneralRe: Using VB.NET dll in VC++ Pin
Jörgen Sigvardsson1-May-08 0:16
Jörgen Sigvardsson1-May-08 0:16 
Questionhow to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin21-Apr-08 15:23
shwlin21-Apr-08 15:23 
AnswerRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin24-Apr-08 15:01
shwlin24-Apr-08 15:01 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
Charles Spirz27-Apr-08 11:51
Charles Spirz27-Apr-08 11:51 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl [modified] Pin
shwlin4-May-08 20:51
shwlin4-May-08 20:51 
AnswerRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin18-May-08 15:54
shwlin18-May-08 15:54 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
rajas6-May-09 6:04
rajas6-May-09 6:04 
GeneralFast search of a vector of strings Pin
bruccutler15-Apr-08 12:40
bruccutler15-Apr-08 12:40 
GeneralRe: Fast search of a vector of strings Pin
Andy Moore16-Apr-08 6:39
Andy Moore16-Apr-08 6:39 
Generalerror MIDL2025 : syntax error Pin
Ganesh_T14-Apr-08 0:53
Ganesh_T14-Apr-08 0:53 
QuestionRe: error MIDL2025 : syntax error Pin
Nathan Holt at EMOM16-Apr-08 10:56
Nathan Holt at EMOM16-Apr-08 10:56 
GeneralCoCreateInstanceAsAdmin Pin
swamy Narasimha13-Apr-08 23:14
swamy Narasimha13-Apr-08 23:14 
GeneralRe: CoCreateInstanceAsAdmin Pin
Jörgen Sigvardsson1-May-08 0:19
Jörgen Sigvardsson1-May-08 0:19 
QuestionVB Client Crashes while using ATL COM build in C++ Pin
garammasala13-Apr-08 22:56
garammasala13-Apr-08 22:56 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
Nathan Holt at EMOM16-Apr-08 11:35
Nathan Holt at EMOM16-Apr-08 11:35 

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.