Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Only one Icon in my treeview! Pin
CrocodileBuck17-May-08 22:08
CrocodileBuck17-May-08 22:08 
GeneralRe: Only one Icon in my treeview! Pin
CrocodileBuck18-May-08 7:44
CrocodileBuck18-May-08 7:44 
GeneralRe: Only one Icon in my treeview! Pin
Iain Clarke, Warrior Programmer19-May-08 5:45
Iain Clarke, Warrior Programmer19-May-08 5:45 
QuestionHow do I use this api call for C++ Pin
luisgrimaldo17-May-08 6:15
luisgrimaldo17-May-08 6:15 
AnswerRe: How do I use this api call for C++ Pin
Hamid_RT17-May-08 6:40
Hamid_RT17-May-08 6:40 
GeneralRe: How do I use this api call for C++ Pin
luisgrimaldo17-May-08 7:14
luisgrimaldo17-May-08 7:14 
GeneralRe: How do I use this api call for C++ Pin
Hamid_RT17-May-08 7:25
Hamid_RT17-May-08 7:25 
GeneralRe: How do I use this api call for C++ Pin
luisgrimaldo17-May-08 8:06
luisgrimaldo17-May-08 8:06 
public ref class Win32{
private: Win32() { }
public:
	literal int WM_USER = 0x400;
	literal int WM_PAINT = 0xF;
	literal int WM_KEYDOWN = 0x100;
	literal int WM_KEYUP = 0x101;
	literal int WM_CHAR = 0x102;
	literal int EM_GETSCROLLPOS = (WM_USER + 221);
	literal int EM_SETSCROLLPOS = (WM_USER + 222);
	literal int VK_CONTROL = 0x11;
	literal int VK_UP = 0x26;
	literal int VK_DOWN = 0x28;
	literal int VK_NUMLOCK = 0x90;
	literal short KS_ON = 0x01;
	literal short KS_KEYDOWN = 0x80;
	[StructLayout(LayoutKind::Sequential)]
	ref struct POINT
	{ public: int x, y;}
	LRESULT SendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); //This is what you told me
//This is the code I used in C# (bellow) but now I want it in C++
		//[DllImport("user32")] public static extern int SendMessage(HWND hwnd, int wMsg, int wParam, IntPtr lParam);
		//[DllImport("user32")] public static extern int PostMessage(HWND hwnd, int wMsg, int wParam, int lParam);
		//[DllImport("user32")] public static extern short GetKeyState(int nVirtKey);
		//[DllImport("user32")] public static extern int LockWindowUpdate(HWND hwnd);
	};

GeneralRe: How do I use this api call for C++ Pin
bob1697217-May-08 9:39
bob1697217-May-08 9:39 
GeneralRe: How do I use this api call for C++ Pin
Hamid_RT17-May-08 19:11
Hamid_RT17-May-08 19:11 
AnswerRe: How do I use this api call for C++ Pin
Hamid_RT17-May-08 6:51
Hamid_RT17-May-08 6:51 
GeneralRe: How do I use this api call for C++ Pin
ThatsAlok6-Jul-09 21:01
ThatsAlok6-Jul-09 21:01 
GeneralRe: How do I use this api call for C++ Pin
Hamid_RT7-Jul-09 1:06
Hamid_RT7-Jul-09 1:06 
Questionnot allowing the edit option for an combobox Pin
sunny_vc17-May-08 0:13
sunny_vc17-May-08 0:13 
AnswerRe: not allowing the edit option for an combobox Pin
Gary R. Wheeler17-May-08 0:20
Gary R. Wheeler17-May-08 0:20 
AnswerRe: not allowing the edit option for an combobox Pin
Maxim Zarus17-May-08 0:21
Maxim Zarus17-May-08 0:21 
GeneralRe: not allowing the edit option for an combobox Pin
sunny_vc17-May-08 0:29
sunny_vc17-May-08 0:29 
QuestionCan't read the summary property of docx file Pin
Prazwol17-May-08 0:11
Prazwol17-May-08 0:11 
AnswerRe: Can't read the summary property of docx file Pin
Iain Clarke, Warrior Programmer17-May-08 0:27
Iain Clarke, Warrior Programmer17-May-08 0:27 
QuestionHow can I get user accout details ? Pin
SherTeks17-May-08 0:03
SherTeks17-May-08 0:03 
AnswerRe: How can I get user accout details ? Pin
Hamid_RT17-May-08 0:51
Hamid_RT17-May-08 0:51 
QuestionHow can handle Enter key in TreeCtrl? Pin
Le@rner16-May-08 22:09
Le@rner16-May-08 22:09 
AnswerRe: How can handle Enter key in TreeCtrl? Pin
Naveen16-May-08 22:39
Naveen16-May-08 22:39 
GeneralRe: How can handle Enter key in TreeCtrl? Pin
Le@rner17-May-08 0:44
Le@rner17-May-08 0:44 
GeneralRe: How can handle Enter key in TreeCtrl? Pin
Hamid_RT17-May-08 0:47
Hamid_RT17-May-08 0:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.