what the problem with this

Started by
37 comments, last by Crypter 16 years ago
when i wrote this , it gave error

invalid conversion from `void*' to `LPARAM'
initializing argument 4 of `LRESULT SendMessageA(HWND__*, UINT, WPARAM, LPARAM)'

how to correct it?
thanks
Advertisement
Sorry, forgot the cast.

SendMessage( hBtn, BM_SETIMAGE, IMAGE_BITMAP, reinterpret_cast<LPARAM>(hBitmap) );
thanks a lot
i have made my buttons as desired by me
thanks again...................
but now i cant clear my screen since the buttons are there permanently

how to remove them from my opengl window?
please help
thanks
i was clearing my screen by glClear(GL_COLOR_BUFFER_BIT);

but buttons were not dispearing
can someone help
thanks
any suggestions?
Buttons and other controls will automatically redraw themselves, if you don't want them to be drawn you can hide them with ShowWindow.
Quote:Original post by MJP
Buttons and other controls will automatically redraw themselves, if you don't want them to be drawn you can hide them with ShowWindow.


how to hide them by showwindow . i think we have to use
ShowWindow(hWnd, nFunsterStil);

but with what value of nFunsterStil ?
All the possible values are listed in the documentation.
Quote:Original post by MJP
All the possible values are listed in the documentation.


i tried ShowWindow(hBtn, SW_HIDE); but it does not remove the button from my window

please help

This topic is closed to new replies.

Advertisement