| 257 | } |
| 258 | |
| 259 | void GuildHeader::CheckReleaseButton(HDC hdc, HWND hWnd, Button& button, int buttonIndex, POINT& pt) |
| 260 | { |
| 261 | if (button.m_held) { |
| 262 | button.m_held = false; |
| 263 | DrawButton(hdc, button); |
| 264 | SendMessage(hWnd, WM_USERCOMMAND, (WPARAM) button.m_buttonID, (LPARAM) buttonIndex); |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | LRESULT CALLBACK GuildHeader::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| 269 | { |