If this is supposed to be useful to anyone but yourself, perhaps you could create an article for it, rather than just a post that will go away in a matter of hours. Provide lots of documentation as to what it is and/or isn't supposed to do.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
In my application I have added a combo box on the toolbar by calling Create()
My requirement is to keep this combo box disabled initially. And after some specific action I want this combo box to be enabled. I can disable it while creating it by passing WS_DISABLE, but the question is how can I enable it after words?
disable it while creating it by passing WS_DISABLE,
The EnableWindow function enables or disables mouse and keyboard input to the specified window or control.
Are you creating the combo box and have the handle to that window
EnableWindow(hwndCombo,true); will enable the combo box
Somethings seem HARD to do, until we know how to do them. _AnShUmAn_
So see,a image in 800x600 and a square on thr image
CImage m_Image;<br />
FillRect(GetDC()->m_hDC,CRect(0,0,100,100), (HBRUSH)GetStockObject(BLACK_BRUSH) );//you can use also from a brush handle <br />
I am using CxImageLib. I have included all the include file in the directiory tab and copied all the dlls and lib file of that project in to my project. But when i copile and build my project in shows an error...
fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
where the #include <stdbool.h> statement is in some library header file.
Drawing with an XOR operation is the usual way of restoring the original bitmap - just do the same XOR draw again. Otherwise, the original draw overwrites the bits where the ellipse goes, and you have to redraw the window to remove the ellipse.