main_nonclient.cpp 876 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /** (c) Nullsoft, Inc. C O N F I D E N T I A L
  2. ** Filename:
  3. ** Project:
  4. ** Description:
  5. ** Author:
  6. ** Created:
  7. **/
  8. #include "Main.h"
  9. UINT Main_OnNCHitTest(HWND hwnd, int x, int y)
  10. {
  11. return HTCLIENT;
  12. }
  13. BOOL Main_OnNCActivate(HWND hwnd, BOOL fActive, HWND hwndActDeact, BOOL fMinimized)
  14. {
  15. if (fActive == FALSE)
  16. {
  17. draw_tbar(config_hilite ? 0 : 1, config_windowshade, eggstat);
  18. if (config_windowshade) SendMessageW(hwnd, WM_TIMER, UPDATE_DISPLAY_TIMER + 4, 0);
  19. }
  20. else
  21. {
  22. static int i;
  23. if (i) draw_tbar(1, config_windowshade, eggstat);
  24. i = 1;
  25. if (config_windowshade) SendMessageW(hwnd, WM_TIMER, UPDATE_DISPLAY_TIMER + 4, 0);
  26. }
  27. return TRUE;
  28. }
  29. UINT Main_OnNCCalcSize(HWND hwnd, BOOL fCalcValidRects, NCCALCSIZE_PARAMS * lpcsp)
  30. {
  31. /*if (fCalcValidRects)
  32. {}
  33. else
  34. {}*/
  35. return WVR_ALIGNTOP | WVR_ALIGNBOTTOM | WVR_ALIGNRIGHT | WVR_ALIGNLEFT;
  36. }