Click here to Skip to main content
15,881,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCOM in C language. Pin
pc_dev22-Dec-05 1:07
pc_dev22-Dec-05 1:07 
AnswerRe: COM in C language. Pin
Cedric Moonen22-Dec-05 1:53
Cedric Moonen22-Dec-05 1:53 
GeneralRe: COM in C language. Pin
pc_dev22-Dec-05 19:51
pc_dev22-Dec-05 19:51 
AnswerRe: COM in C language. Pin
Andy Moore22-Dec-05 6:44
Andy Moore22-Dec-05 6:44 
GeneralRe: COM in C language. Pin
pc_dev22-Dec-05 19:53
pc_dev22-Dec-05 19:53 
QuestionUsing a mask for drawing non rectangular bitmaps Pin
Ward22-Dec-05 0:36
Ward22-Dec-05 0:36 
AnswerRe: Using a mask for drawing non rectangular bitmaps Pin
PJ Arends22-Dec-05 8:43
professionalPJ Arends22-Dec-05 8:43 
AnswerRe: Using a mask for drawing non rectangular bitmaps Pin
Ward25-Dec-05 10:08
Ward25-Dec-05 10:08 
Well, at first I've tried DrawIcon, but when I wanted to use the bitmap hBitmap5 as the bitmap for a toolbar button (used in TB_ADDBUTTON-message) the area which was supposed to be the background color of the toolbarbuttons, were turned in white.
I did found a solution last friday (at last). First I fill the hBitmap5 with the color of the toolbar buttons. The color of the toolbar buttons I was able to retreive using GetSysColor. Then I used the DrawIcon on this hBitmap5. And finally I passed this hBitmap5 to the toolbar with the TB_ADDBUTTON-message.
The final result is now exact what I wanted.

Anyway, thanks for your reply.

kind regards,


Ward

-- modified at 16:09 Sunday 25th December, 2005
QuestionGetMenu() returns NULL for Visual Studio 2003 Pin
Owner drawn22-Dec-05 0:29
Owner drawn22-Dec-05 0:29 
Question_tcscpy Vs lstrcpy Pin
Nishad S22-Dec-05 0:16
Nishad S22-Dec-05 0:16 
AnswerRe: _tcscpy Vs lstrcpy Pin
toxcct22-Dec-05 0:31
toxcct22-Dec-05 0:31 
GeneralRe: _tcscpy Vs lstrcpy Pin
Nishad S22-Dec-05 0:43
Nishad S22-Dec-05 0:43 
GeneralRe: _tcscpy Vs lstrcpy Pin
Blake Miller22-Dec-05 5:41
Blake Miller22-Dec-05 5:41 
GeneralRe: _tcscpy Vs lstrcpy Pin
Nishad S22-Dec-05 16:23
Nishad S22-Dec-05 16:23 
AnswerRe: _tcscpy Vs lstrcpy Pin
ThatsAlok22-Dec-05 0:53
ThatsAlok22-Dec-05 0:53 
GeneralRe: _tcscpy Vs lstrcpy Pin
Nishad S22-Dec-05 0:56
Nishad S22-Dec-05 0:56 
AnswerRe: _tcscpy Vs lstrcpy Pin
Aamir Butt22-Dec-05 18:58
Aamir Butt22-Dec-05 18:58 
GeneralRe: _tcscpy Vs lstrcpy Pin
Nishad S22-Dec-05 19:01
Nishad S22-Dec-05 19:01 
Questiontemplate with Iterator - some Problems Pin
tbrake22-Dec-05 0:08
tbrake22-Dec-05 0:08 
AnswerRe: template with Iterator - some Problems Pin
Sebastian Schneider22-Dec-05 0:47
Sebastian Schneider22-Dec-05 0:47 
GeneralRe: template with Iterator - some Problems Pin
tbrake22-Dec-05 0:57
tbrake22-Dec-05 0:57 
GeneralRe: template with Iterator - some Problems Pin
Sebastian Schneider22-Dec-05 1:23
Sebastian Schneider22-Dec-05 1:23 
GeneralRe: template with Iterator - some Problems Pin
tbrake22-Dec-05 1:43
tbrake22-Dec-05 1:43 
GeneralRe: template with Iterator - some Problems Pin
Sebastian Schneider22-Dec-05 2:04
Sebastian Schneider22-Dec-05 2:04 
GeneralRe: template with Iterator - some Problems Pin
tbrake22-Dec-05 2:21
tbrake22-Dec-05 2:21 

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.