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.
I m using RFX_Text function to retrieve the resultset from the query sp_who (back end is SQL Server 2000). But 3 columns of sp_who returns me nchar data due to which I m getting "Unicode conversion failed" error.
Please suggest me a way to deal with unicode characters.
The member variables m_strLoginame, m_strHostname and m_strDbname are declared as CString.