Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: list of all users on Win OS Pin
sanskypotov27-Feb-02 20:38
sanskypotov27-Feb-02 20:38 
GeneralRe: list of all users on Win OS Pin
Carlos Antollini27-Feb-02 3:31
Carlos Antollini27-Feb-02 3:31 
GeneralRe: list of all users on Win OS Pin
Carlos Antollini27-Feb-02 3:31
Carlos Antollini27-Feb-02 3:31 
GeneralNeed all the create users on that machine Pin
sanskypotov27-Feb-02 20:03
sanskypotov27-Feb-02 20:03 
GeneralRe: Need all the create users on that machine Pin
Carlos Antollini28-Feb-02 3:07
Carlos Antollini28-Feb-02 3:07 
QuestionA ready-made framework for Add-ins? Pin
Omer S.27-Feb-02 1:34
Omer S.27-Feb-02 1:34 
AnswerRe: A ready-made framework for Add-ins? Pin
Roger Allen27-Feb-02 4:26
Roger Allen27-Feb-02 4:26 
Generalproblem with XP Visual Styles API Pin
Konstantin S. Diguine27-Feb-02 0:27
Konstantin S. Diguine27-Feb-02 0:27 
I need to implement support for the Visual Styles of XP in some application. It's not based on MFC, just pure win32 api is used. The main window of this application has a toolbar which is "hand made" too.
The problem is that Visual Styles API does not draw the bitmap of the toolbutton or makes it terrrible - draws the bitmap without tacking in account the transparency color...
Please help, here's that simplified code (for better readability) for each button on the toolbar:

HTHEME hTheme = GetToolbarHTheme(hwnd);
BITMAP bm;
COLORREF cl = MGetBitmapInfo(hBitmap, bm, -1, -1); // gets the dimentions and the transparency color of the bitmap
HIMAGELIST himl = ImageList_Create(
bm.bmWidth, bm.bmHeight, ILC_COLORDDB|ILC_MASK, 0, 2);
int i = ImageList_AddMasked(himl, hBitmap, cl);
DrawThemeBackground(hTheme, hdc, 1, state, &rect, 0);
DrawThemeIcon(hTheme, hdc, 1, state, (LPRECT)&rc (LPRECT)ptbi, himl, i);
ImageList_Destroy(himl);
CloseThemeData(hTheme);

when I remove "ILC_MASK" then the bitmaps are drawn in th black rectangles or
else nothing appeares

konst
GeneralRe: problem with XP Visual Styles API Pin
Paul A. Howes27-Feb-02 3:11
Paul A. Howes27-Feb-02 3:11 
GeneralRe: problem with XP Visual Styles API Pin
Konstantin S. Diguine27-Feb-02 3:32
Konstantin S. Diguine27-Feb-02 3:32 
GeneralRe: problem with XP Visual Styles API Pin
Paul A. Howes27-Feb-02 15:21
Paul A. Howes27-Feb-02 15:21 
GeneralFocus - problem Pin
Wizard_0127-Feb-02 0:06
Wizard_0127-Feb-02 0:06 
GeneralRe: Focus - problem Pin
Tim Smith27-Feb-02 2:19
Tim Smith27-Feb-02 2:19 
GeneralMainFrame Pin
26-Feb-02 23:17
suss26-Feb-02 23:17 
GeneralRe: MainFrame Pin
Michael P Butler26-Feb-02 23:30
Michael P Butler26-Feb-02 23:30 
GeneralRe: MainFrame Pin
Mazdak26-Feb-02 23:30
Mazdak26-Feb-02 23:30 
GeneralMFC Smart Pointers not dual interfaces... Pin
Braulio Dez26-Feb-02 23:14
Braulio Dez26-Feb-02 23:14 
GeneralRe: MFC Smart Pointers not dual interfaces... Pin
peterchen27-Feb-02 5:59
peterchen27-Feb-02 5:59 
GeneralRe: MFC Smart Pointers not dual interfaces... Pin
Braulio Dez3-Mar-02 21:33
Braulio Dez3-Mar-02 21:33 
GeneralRe: MFC Smart Pointers not dual interfaces... Pin
peterchen4-Mar-02 0:52
peterchen4-Mar-02 0:52 
GeneralRe: MFC Smart Pointers not dual interfaces... Pin
Braulio Dez4-Mar-02 2:54
Braulio Dez4-Mar-02 2:54 
GeneralRe: MFC Smart Pointers not dual interfaces... Pin
peterchen4-Mar-02 6:35
peterchen4-Mar-02 6:35 
GeneralRe: MFC Smart Pointers not dual interfaces... Pin
Braulio Dez4-Mar-02 21:11
Braulio Dez4-Mar-02 21:11 
GeneralRe: MFC Smart Pointers not dual interfaces... Pin
peterchen4-Mar-02 23:39
peterchen4-Mar-02 23:39 
GeneralRe: MFC Smart Pointers not dual interfaces... Pin
Braulio Dez5-Mar-02 0:00
Braulio Dez5-Mar-02 0:00 

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.