779

CreateWindow API

Just for fun.. incerc sa fac o aplicatie... care creaza un BUTTON in fereastra altei aplicatii (yahoo messenger)adica..1. gasesc fereastra de mesaj .. HWND hWnd = ::FindWindowW(L"YSearchMenuWndClass", NULL);2. creez un buton pe acea fereastra... ::CreateWindow(L"BUTTON", L"zuzu",3. while( ::GetMessageW(&msg, NULL, 0, 0) ) { ... }problema... primesc doar WM_PAINT la acel buton :) cum sa prind si clicuirea ? :)any ideas? :)
0