1. API Question

Hi all,
I have been having a problem with status bars. 
 I have created a Status bar and i have made it owner drawn. by sending 
the SB_SETTEXTA. 

When it comes to the WM_DRAWITEM message i peek all the information i 
need then i use bitblt to draw a bitmap on the 5th part of the status 
bar. It works fine cause i have followed all the procedures as stated in 
the win95hlp file. The thing is that every time the WM_SIZE message is 
processed the picture disappears and appears as a small dot at the 
position specified by the rcItem of the DRAWITEMSTRUCTURE.

If all the above is gibberish then i would appreciated some one sending 
me code for doing this. BTW, my start of API programming has helped me 
make a few cool additions to my version of win32lib. i have managed 
creating menus with bitmaps and having radio buttons. The only move is 
to convince Derek to add these to win32lib. I'm also working on an MDI 
library.

Thanx in advance
jordah ferguson

new topic     » topic index » view message » categorize

2. Re: API Question

>Hi all,
>I have been having a problem with status bars.
>  I have created a Status bar and i have made it owner drawn. by sending
>the SB_SETTEXTA.
>
>When it comes to the WM_DRAWITEM message i peek all the information i
>need then i use bitblt to draw a bitmap on the 5th part of the status
>bar. It works fine cause i have followed all the procedures as stated in
>the win95hlp file. The thing is that every time the WM_SIZE message is
>processed the picture disappears and appears as a small dot at the
>position specified by the rcItem of the DRAWITEMSTRUCTURE.
>
>If all the above is gibberish then i would appreciated some one sending
>me code for doing this. BTW, my start of API programming has helped me
>make a few cool additions to my version of win32lib. i have managed
>creating menus with bitmaps and having radio buttons. The only move is
>to convince Derek to add these to win32lib. I'm also working on an MDI
>library.
>
>Thanx in advance
>jordah ferguson

Hard to say without seeing the code...
Post it and I will have a look at it

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu