| 246 | } |
| 247 | |
| 248 | void GuildHeader::CheckClickButton(HDC hdc, Button& button, POINT& pt) |
| 249 | { |
| 250 | bool hit = PtInRect(&button.m_rect, pt); |
| 251 | |
| 252 | if (button.m_held != hit || button.m_hot) { |
| 253 | button.m_held = hit; |
| 254 | button.m_hot = false; |
| 255 | DrawButton(hdc, button); |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | void GuildHeader::CheckReleaseButton(HDC hdc, HWND hWnd, Button& button, int buttonIndex, POINT& pt) |
| 260 | { |