Hi I am using a rih edit control in my SDK app. So when i was executing the app i got the "Cannot find window class" error when i tried to call CreateDialog(..). So i did the following INITCOMMONCONTROLSEX init; memset(&init, 0, sizeof(init)); init.dwSize = sizeof(INITCOMMONCONTROLSEX); init.dwICC = ICC_STANDARD_CLASSES; InitCommonControlsEx(&init); Now i get an error that 'ICC_STANDARD_CLASSES' : undeclared identifier even when commctrl.h and comctl32.lib are properly used.
stolid_rock
Posts
-
'ICC_STANDARD_CLASSES' : undeclared identifier -
convert int to char??use itoa() function
-
Event after ShowWindow()Is there any message indicating that the window has been shown for the first time? CWnd::PreCreateWindow method is called by the framework before the creation of the window attached to this CWnd object
-
How to execute thisTry this string sFile(_T("regsvr32")); string sParam(_T("/u \"F:\\Data\\MAPIProp\\mapiprop.dll\"")); ::ShellExecute(NULL,_T("open"),sFile.c_str(),sParam.c_str(),0,SW_SHOW);
-
C++ StandardsSee the http://www.csc.lsu.edu/~kosmas/C++guidelines.pdf[^]:-D
-
How to import class from a dll?View this link http://www.codeproject.com/dll/classesexportedusingLL.asp[^]
-
Can Use VirtualAllocEx( ) to Get Memory from Other Process?For performing some write operations in memory allocated by VirtualAllocEx() use WriteProcessMemory() function. Other functions often raise an exception when used to write in memory of another process.
-
Anyway to know the prototype of functions exported by a DLLThanks Anyway... I thought someone may have some idea of making it possible.
-
Anyway to know the prototype of functions exported by a DLLHi i have tried utilities like Dumpbin, OLEview, DEPENDS but we only get the function names. Is there any way to know the prototype of a function exported by a DLL.
-
Console Full Screen ModeYou will have to use the SetConsoleWindowInfo function to set the size. But before that you have to use functions like GetConsoleWindow, GetConsoleScreenBufferInfo for the actual effect to take place.
-
File I/O : Which one to use? CFile or fstream?You can get some basic implementations at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/\_core\_files\_in\_mfc.asp and http://www.codersource.net/mfc\_cfile.html
-
File I/O : Which one to use? CFile or fstream?I suggest you should use the CFile rather than fstream. You can do lots of things using the functionality CFile provides
-
How to unload dllsTo load and unload libraries use LoadLibrary and FreeLibrary functions.
-
How to get application currently activatedI think u will have to use hooks. Try this link http://www.codeproject.com/dll/hooks.asp
-
WM_KILLFOCUSHi there, All you have to do is create a handler for trapping the EN_KILLFOCUS so that you get the message that the edit control is loosing the focus. So inside the handler put the MessageBox that you want to popup. When the user clicks on OK on the dialog box, edit control looses the focus. So to ensure that the focus is on the edit control, create a control variable for the edit control suppose(m_control) do the following after the statement following the MessageBox CPoint set(0,0); m_control.SetFocus(); m_control.SetCaretPos(set); :)