How to send message to another program?
-
I send you 2 apps. Plx check. Thanks a lot. No pains, no gains.
-
I send you 2 apps. Plx check. Thanks a lot. No pains, no gains.
-
I don't know why it works! Just before I sent you the 2 apps, it showed "Not Found". HWND g_FindSpecialControl(LPCSTR lpWndCap, int nIDDlgItem) { HWND hWnd; int nID; hWnd = FindWindow(NULL, lpWndCap); if (hWnd == NULL) return NULL; hWnd = GetWindow(hWnd, GW_CHILD); while (hWnd != NULL) { hWnd = GetWindow(hWnd, GW_HWNDNEXT); nID = GetDlgCtrlID(hWnd); if (nID == nIDDlgItem) return hWnd; } return NULL; } It's strange! No pains, no gains.
-
I don't know why it works! Just before I sent you the 2 apps, it showed "Not Found". HWND g_FindSpecialControl(LPCSTR lpWndCap, int nIDDlgItem) { HWND hWnd; int nID; hWnd = FindWindow(NULL, lpWndCap); if (hWnd == NULL) return NULL; hWnd = GetWindow(hWnd, GW_CHILD); while (hWnd != NULL) { hWnd = GetWindow(hWnd, GW_HWNDNEXT); nID = GetDlgCtrlID(hWnd); if (nID == nIDDlgItem) return hWnd; } return NULL; } It's strange! No pains, no gains.
-
Its really very strange, I didn´t no changes but the path to test dialog.Now I think that there is nothing more to do!:cool:
Sorry about my troubling you. I have to send my whole project to you. Plx take some time to help me. Thanks. Richard Woo No pains, no gains.
-
Sorry about my troubling you. I have to send my whole project to you. Plx take some time to help me. Thanks. Richard Woo No pains, no gains.
-
Have you received my email with the 2 programs? No pains, no gains.
-
Have you received my email with the 2 programs? No pains, no gains.
-
Hi, I tried another way and it did work! I used EnumChildWindows function to enumerate all child windows of the dialog and I could get the handle of the edit control through a callback function. Thanks for help. Richard Woo No pains, no gains.
-
Hi, I tried another way and it did work! I used EnumChildWindows function to enumerate all child windows of the dialog and I could get the handle of the edit control through a callback function. Thanks for help. Richard Woo No pains, no gains.