![]() |
Custom Menu Background Question |
Post Reply ![]() |
Author | |
robosport ![]() Groupie ![]() Joined: 20 June 2005 Location: United States Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() Posted: 22 June 2005 at 12:28pm |
I'm slowly getting a grip on the custom themes. I have another noob question though. I am tying to fill in the menu background with a gradient. I found a great example in ACDSee Theme sample of how to use the FillCommandBarEntry to accomplish a custom background. Unfortunately the same FillCommandBarEntry also gets called for the background of the toolbar and the background of the pull down menus. Question: Is there a way to draw a custom background just for the menu bar, and a different custom background for menus, and yet a different one for toolbars? It seems like the easiest way would be if it was possible to figure out in the FillCommandBarEntry function what control type it is being call for (menu bar, tool bar, etc.), but I haven't figured out how to do that yet. Any pointers would be much appreciated. Thank you! Edited by robosport |
|
![]() |
|
robosport ![]() Groupie ![]() Joined: 20 June 2005 Location: United States Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() |
Got it! Apparently just typing out the problem and what I assumed might be a solution was enough for it to click in my head. I used the GetType() function of the pBar parameter and compared it agains the enum bar type I hadn't seen before. if ( pBar->GetType() == xtpBarTypeMenuBar ) ... is exactly what I needed. Awesome library. I'm still learning it but I keep being impressed every time I find something I needed already there.
Edited by robosport |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |