Fensterhandle der eigenen Anwendung raussuchen
-
Hallo Leute,
wollt mal fragen, wie es (in C#) geht, die hwnd der eigenen anwendung auszulesen???
Bitte um Hilfe, danke.Garry
-
was soll "die hwnd der eigenen anwendung" darstellen? außerdem ist hier c und kein c#
-
eine zahl im IntPtr format
-
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { HWND hWnd[10]; INT i; hInst = hInstance; // Store instance handle in our global variable for(i = 0; i < 10; i++) { hWnd[i] = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); if (!hWnd) { return FALSE; } ShowWindow(hWnd[i], nCmdShow); UpdateWindow(hWnd[i]); } return TRUE; }
-
welches von den 10 meinst du?
-
ascda schrieb:
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { HWND hWnd[10]; INT i; hInst = hInstance; // Store instance handle in our global variable for(i = 0; i < 10; i++) { hWnd[i] = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); if (!hWnd) { return FALSE; } ShowWindow(hWnd[i], nCmdShow); UpdateWindow(hWnd[i]); } return TRUE; }
was soll der müll den? ich glaube er such GetModuleHandle(0)??
-
GetModuleHandle(0) hat nix mit fenster handle zu tun du schrottkopf
-
ER WILL DAS HANDLE SEINER EIGENEN ANWENDUNG UND HAT ES HALT FENSTERHANDLE GENANNT DU KACKFASS
-
garry_weber schrieb:
Hallo Leute,
wollt mal fragen, wie es (in C#) geht, die hwnd der eigenen anwendung auszulesen???
Bitte um Hilfe, danke.Garry
-
FensterObjekt.Handle ?
-
danke habs hingekriegt...