I have 2 buttons. But how to send to " LRESULT CALLBACK WindowProcedure...
" that they are pressed?
hbut2 = CreateWindowEx(NULL, szBtnClassName, "Âûõîä", WS_CHILD | WS_VISIBLE, 300, 300, 200, 40, hwnd, NULL, hThisInstance, NULL); hbut = CreateWindowEx(NULL, szBtnClassName, "Óñòàíîâèòü Lardi Plus", WS_CHILD | WS_VISIBLE, 50, 300, 200, 40, hwnd, NULL, hThisInstance, NULL); HRGN rgn = CreateRoundRectRgn(10, 10, 190, 40, 15, 15); SetWindowRgn(hbut, rgn, TRUE); SetWindowRgn(hbut2, rgn, TRUE); // ---------------------- ShowWindow(hwnd, SW_SHOWNORMAL); UpdateWindow(hwnd);