

IoT, IoE, and Maker Forum (on VBForums).Project Planning, Design, and Management.Scripting - Server Side (PHP, Perl, etc.).


TitleWindow = CreateWindow(szChildClass, TEXT("ENGLISH SEARCH"), WS_CHILD|WS_VISIBLE, 200, 5, 300,50, hWnd, (HMENU) IDC_HEAD, Memset(&gMovieStuff, 0, sizeof(MovieStuff)) LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) If I use the main window HWND, it works fine, but after i change to control child, get NULL, and I check child HWND, it is created. Is it possible I can call the part in other MFC dialogs and I can call other dialog in this API part, or I have to write the other dialogs in API. This code I write to play Quicktime Movie in API, but right the rest of part MessageBox(NULL, lpText, TEXT("Edit Text"), MB_OK) If(lpText) GetWindowText(edit_hwnd, lpText, nLen) LpText = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nLen+1) Int nLen = GetWindowTextLength(edit_hwnd) GetDlgItemText(edit_hwnd,IDC_EDIT_SEARCH_WORD, edit_text, 10) (HINSTANCE) GetWindowLong(hWnd, GWL_HINSTANCE), NULL) HWND edit_hwnd =CreateWindow(TEXT("edit"), TEXT("edit area"), WS_CHILD|WS_VISIBLE, 50, 70, 150,30, hWnd, (HMENU) IDC_EDIT_SEARCH_WORD, Hi, I have a problem in Getting edit from my API code
