1
0

notifmsg.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #ifndef _NOTIFMSG_H
  2. #define _NOTIFMSG_H
  3. //!## Messages for BaseWnd::childNotify
  4. // these are in their own header file to keep from having to muck with
  5. // basewnd.h all the time to add a new global message
  6. namespace ChildNotify {
  7. enum {
  8. //
  9. // Common messages any control may need to send
  10. NOP = 0, // not used. do not use.
  11. // When child window is in its destructor
  12. DELETED = 100, // no params
  13. // Focus stuff
  14. GOTFOCUS = 200, // no params
  15. KILLFOCUS = 210, // no params
  16. NAMECHANGED = 220, // no params
  17. // for transient child windows
  18. RETURN_CODE = 300, // param1 = the code
  19. // NOTE: Currently only used by editwnd.cpp, but open for custom use by developers
  20. // child wants parent to hide/show it
  21. HIDEYHIDEY = 400, // no params
  22. UNHIDEYHIDEY = 410, // no params
  23. // class-specific stuff
  24. // ButtonWnd, buttwnd.h
  25. BUTTON_LEFTPUSH = 10000, // no params
  26. BUTTON_RIGHTPUSH = 10010, // no params
  27. BUTTON_LEFTDOUBLECLICK = 10020, // no params
  28. BUTTON_RIGHTDOUBLECLICK = 10030, // no params
  29. CLICKWND_LEFTDOWN = 10100, // x/y
  30. CLICKWND_LEFTUP = 10101, // x/y
  31. CLICKWND_RIGHTDOWN = 10102, // x/y
  32. CLICKWND_RIGHTUP = 10103, // x/y
  33. // EditWnd, editwnd.h
  34. EDITWND_DATA_MODIFIED = 11000, // user edit - no params
  35. EDITWND_DATA_MODIFIED_ONIDLE = 11005, // user edit - no params (on idle)
  36. EDITWND_CANCEL_PRESSED = 11010, // esc pressed - no params
  37. EDITWND_ENTER_PRESSED = 11020, // enter pressed - no params
  38. EDITWND_KEY_PRESSED = 11030, // any key pressed - param1 = the key
  39. // DropList, droplist.h
  40. DROPLIST_SEL_CHANGED = 12000, // param1 = new pos
  41. // ListWnd, listwnd.h
  42. LISTWND_SELCHANGED = 13000, // sent on any change - no params
  43. LISTWND_ITEMSELCHANGED = 13010, // sent for each item - param1 = the item index, param2 = its selected state
  44. LISTWND_DBLCLK = 13100, // param1 = the item index
  45. LISTWND_POPUPMENU = 13200, // param1 = the x coord, param2 = the y coord
  46. // FrameWnd, framewnd.h
  47. FRAMEWND_QUERY_SLIDE_MODE = 14000, // no params - return slide mode
  48. FRAMEWND_SET_SLIDE_MODE = 14010, // param1 = the new slide mode
  49. FRAMEWND_WINDOWSHADE_CAPABLE = 14020, // no params - return width of shade
  50. FRAMEWND_WINDOWSHADE_ENABLE = 14030, // param1 = new enabled state
  51. // Cut? this is unused.
  52. // FRAMEWND_WINDOWSHADE_DISABLE = 14040,
  53. FRAMEWND_SETTITLEWIDTH = 14050, // param1 = the pullbar position
  54. // ServiceWnd, servicewnd.h
  55. SVCWND_LBUTTONDOWN = 15000, // param1 = the x coord, param2 = the y coord
  56. SVCWND_RBUTTONDOWN = 15010, // param1 = the x coord, param2 = the y coord
  57. SVCWND_LBUTTONUP = 15020, // param1 = the x coord, param2 = the y coord
  58. SVCWND_RBUTTONUP = 15030, // param1 = the x coord, param2 = the y coord
  59. SVCWND_LBUTTONDBLCLK = 15040, // param1 = the x coord, param2 = the y coord
  60. SVCWND_RBUTTONDBLCLK = 15050, // param1 = the x coord, param2 = the y coord
  61. SVCWND_MOUSEMOVE = 15060, // param1 = the x coord, param2 = the y coord
  62. // Slider, slider.h
  63. SLIDER_INTERIM_POSITION = 16000, // param1 = the slider position
  64. SLIDER_FINAL_POSITION = 16010, // param1 = the slider position
  65. // BucketItem, bucketitem.h
  66. COMPONENTBUCKET_SETTEXT = 17000, // param1 = pointer to the text
  67. // CheckWnd, checkwnd.h
  68. CHECKWND_CLICK = 18000, // param1 = the new checkstate
  69. // ScrollBar, scrollbar.h
  70. SCROLLBAR_SETPOSITION = 19000, // param1 = the new position
  71. SCROLLBAR_SETFINALPOSITION = 19010, // called when scrolling is completed - no params
  72. // RadioGroup, radiogroup.h
  73. RADIOGROUP_STATECHANGE = 20000, // param1 = the object selected, param2 = the object deselected
  74. // grouptogglebutton
  75. GROUPCLICKTGBUTTON_TOGGLE = 20100, // when the button is toggled, param1 = status
  76. GROUPCLICKTGBUTTON_CLICKED = 20101, // when the button is clicked regardless of toggling
  77. // misc
  78. AUTOWHCHANGED = 20200, // sent by an object whose resource's auto w/h has changed (ie Text changed text, Layer changed image, etc)
  79. GROUPRELOAD = 20300, // sent by abstractwndholder when its content is reloaded
  80. // popup
  81. POPUP_SUBMENUCLOSE = 21000, // sent by a submenu to its parent popup menu when it should close (esc/left key pressed)
  82. };
  83. };
  84. #endif