Click here to Skip to main content
Sign Up to vote bad
good
See more: C++Win32
Hello everyone!
 
I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.
 
I need to create a status bar with following characteristics:
 
- It has blue background;
- Instead of text it has two push buttons;
- It has an icon;
 
So far I was able to learn how to create status bar, set number of its parts, set an icon, and set its text.
 
I have tried setting background with following code
SendMessage( hsbStatus, SB_SETBKCOLOR, (WPARAM)0, (LPARAM) RGB( 0, 0, 255) );
in WM_CREATE, but had no success.
 
I have checked MSDN API documentation and couldn't find anything like " WM_CTLCOLOR-like " thing to use, as I would have used if static control or button was the issue.
 
Also, the reason I think I should use buttons, is because user must go to certain links when certain text in status bar is clicked, and background of that text is an image, so buttons are first thing that came to my idea, but I will accept other suggestions as well.
 
So my question is:
 
Should I owner draw the status bar ( if so please provide some guidance in view of code example or straightforward instructions ) or is there another way to achieve all this?
 
I work in MS Visual Studio Express 2008, on Windows XP, in C++, using WIN32 API.
 
If any other information is required ( source code or something similar ), please ask for it, I will more than gladly supply it.
Posted 3 hrs ago
Edited 3 hrs ago


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 533
1 Maciej Los 395
2 OriginalGriff 345
3 Dave Kreskowiak 270
4 Mohammed Hameed 263
0 Sergey Alexandrovich Kryukov 5,557
1 OriginalGriff 4,532
2 CPallini 2,667
3 Róhãn Lëuvä 2,337
4 Tadit Dash 1,443


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid