I feel rather than hardcoding the values make it relative to the value you get from :- int GetSystemMetrics( int nIndex );
or int GetDeviceCaps( HDC hdc, // handle to DC int nIndex // index of capability );
Regards, FarPointer Blog:FARPOINTER
I feel rather than hardcoding the values make it relative to the value you get from :- int GetSystemMetrics( int nIndex );
or int GetDeviceCaps( HDC hdc, // handle to DC int nIndex // index of capability );
Regards, FarPointer Blog:FARPOINTER
Is it a Modal Dialog then the hiding of the dialog will make the application looked hanged . And as far as hiding the dialog is dont send a WM_HIDEWINDOW . do dlg.ShowWindow(False) before you do a DoModal.
Regards, FarPointer Blog:FARPOINTER
When you make a class template you need to globaly define the object type you are using in the class.h there are other ways to solve this also :- Look for class template instantiation. http://msdn2.microsoft.com/en-us/library/7y5ca42y.aspx[^]
Regards, FarPointer Blog:FARPOINTER
Why dont u draw it to a bitmap and then display it in the Ondraw so that later you can use that bitmap.
Regards, FarPointer Blog:FARPOINTER
Well not compared to chewing gum :-D ya my mistake i was expecting the message map to be like this:- ON_NOTIFY( HDN_ITEMCLICK, 0, OnHeaderClick)
but it will be like this i guess ON_NOTIFY( HDN_ITEMCLICK, IDC_LIST, OnHeaderClick)
Regards, FarPointer Blog:FARPOINTER
Well to first add the notification for HDN_ITEMCLICK is tough:- why because the on notify macro is as follows ON_NOTIFY( wNotifyCode, id, memberFxn ) and the id of the header control is zero unless explicitly set . Regards, FarPointer Blog:FARPOINTER
Please check this out :- http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c985/[^] Regards, FarPointer Blog:FARPOINTER
This is not implemented :- LVS_SELECTED
Regards, FarPointer Blog:FARPOINTER
NM_RCLICK
Regards, FarPointer Blog:FARPOINTER
May be use should check here:- http://www.gamedev.net/community/forums/[^] and http://www.opengl.org/[^] Regards, FarPointer Blog:FARPOINTER
Got to the MFC src file (..\Microsoft Visual Studio\VC98\MFC\SRC
) it has lot of good code and will give you internal details about each thing. Regards, FarPointer Blog:FARPOINTER
OpenGl
Right Regards, FarPointer Blog:FARPOINTER
BOOL SortItems( PFNLVCOMPARE pfnCompare, DWORD_PTR dwData );
Regards, FarPointer Blog:FARPOINTER
PretranslateMessage
:omg: Regards, FarPointer Blog:FARPOINTER
Their is no need to know the hex values of the corssponding keys :- U can use the VK_ and the second one is the corssponding Hex value. VK_SHIFT 10 SHIFT key VK_CONTROL 11 CTRL key
Regards, FarPointer Blog:FARPOINTER
Try this CListCtrl::GetSelectionMark Regards, FarPointer Blog:FARPOINTER
you may try :- WaitForSingleObject
Regards, FarPointer Blog:FARPOINTER
Seting the hook using :- SetWindowsHook
removing the hook:- UnhookWindowsHook
MSDN and codeproject are having nice article on hooking. Regards, FarPointer Blog:FARPOINTER
how did u bring those mydata in-side the angular brackets . and that horizontal slash in prev post. Regards, FarPointer Blog:FARPOINTER