1
0

rootwnd.cpp 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. #include <precomp.h>
  2. #include "rootwnd.h"
  3. #define CBCLASS RootWndI
  4. START_DISPATCH;
  5. CB(GETTIMERCLIENT, getTimerClient);
  6. VCB(BATCHPROCESSES, performBatchProcesses);
  7. CB(GETOSWINDOWHANDLE, getOsWindowHandle);
  8. CB(GETOSMODULEHANDLE, getOsModuleHandle);
  9. CB(GETROOTWNDNAME, getRootWndName);
  10. CB(GETID, getId);
  11. CB(GETGUIOBJECT, getGuiObject);
  12. CB(INIT, init);
  13. CB(ISINITED, isInited);
  14. CB(ISPOSTONINIT, isPostOnInit);
  15. CB(SETVIRTUAL, setVirtual);
  16. CB(CLICKTHROUGH, isClickThrough);
  17. CB(GETFORWARDWND, getForwardWnd);
  18. CB(ONMOUSEMOVE, onMouseMove);
  19. CB(ONLBUP, onLeftButtonUp);
  20. CB(ONRBUP, onRightButtonUp);
  21. CB(ONLBDOWN, onLeftButtonDown);
  22. CB(ONRBDOWN, onRightButtonDown);
  23. CB(ONLBDBLCLK, onLeftButtonDblClk);
  24. CB(ONRBDBLCLK, onRightButtonDblClk);
  25. CB(GETDRAGINTERFACE, getDragInterface);
  26. CB(GETCURSORTYPE, getCursorType);
  27. CB(GETCUSTOMCURSOR, getCustomCursor);
  28. CB(FROMPOINT, rootWndFromPoint);
  29. VCB(GETCLIENTRECT, getClientRect);
  30. VCB(GETNONCLIENTRECT, getNonClientRect);
  31. VCB(GETWINDOWRECT, getWindowRect);
  32. VCB(SETVISIBLE, setVisible);
  33. VCB(SETCLOAKED, setCloaked);
  34. VCB(ONSETVISIBLE, onSetVisible);
  35. CB(ISVISIBLE, isVisible);
  36. CB(GETINTERFACE, getInterface);
  37. VCB(INVALIDATE, invalidate);
  38. VCB(INVALIDATERECT, invalidateRect);
  39. VCB(INVALIDATERGN, invalidateRgn);
  40. VCB(INVALIDATEFROM, invalidateFrom);
  41. VCB(INVALIDATERECTFROM, invalidateRectFrom);
  42. VCB(INVALIDATERGNFROM, invalidateRgnFrom);
  43. VCB(ONCHILDINVALIDATE, onChildInvalidate);
  44. VCB(VALIDATE, validate);
  45. VCB(VALIDATERECT, validateRect);
  46. VCB(VALIDATERGN, validateRgn);
  47. CB(PAINTTREE, rootwnd_paintTree);
  48. CB(PAINT, paint);
  49. CB(GETFRAMEBUFFER, getFrameBuffer);
  50. CB(GETPARENT, getParent);
  51. CB(GETROOTPARENT, getRootParent);
  52. CB(GETDESKTOPPARENT, getDesktopParent);
  53. VCB(SETPARENT, setParent);
  54. CB(ONSIBINVALIDATE, onSiblingInvalidateRgn);
  55. CB(WANTSIBINVALIDATE, wantSiblingInvalidations);
  56. CB(CASCADEREPAINTFROM, cascadeRepaintFrom);
  57. CB(CASCADEREPAINTRGNFROM, cascadeRepaintRgnFrom);
  58. CB(CASCADEREPAINTRECTFROM, cascadeRepaintRectFrom);
  59. CB(CASCADEREPAINT, cascadeRepaint);
  60. CB(CASCADEREPAINTRGN, cascadeRepaintRgn);
  61. CB(CASCADEREPAINTRECT, cascadeRepaintRect);
  62. VCB(REPAINT, repaint);
  63. CB(GETTEXTUREWND, getBaseTextureWindow);
  64. CB(CHILDNOTIFY, childNotify);
  65. CB(GETPREFERENCES, getPreferences);
  66. VCB(SETPREFERENCES, setPreferences);
  67. CB(GETREGION, getRegion);
  68. VCB(SETSTARTHIDDEN, setStartHidden);
  69. CB(GETRENDERRATIO, getRenderRatio);
  70. VCB(SETRENDERRATIO, setRenderRatio);
  71. VCB(SETRATIOLINKED, setRatioLinked);
  72. CB(HANDLERATIO, handleRatio);
  73. VCB(_RESIZE, resize);
  74. VCB(_MOVE, move);
  75. VCB(NOTIFYDEFERREDMOVE, notifyDeferredMove);
  76. VCB(GETPOSITION, getPosition);
  77. VCB(REGISTERROOTWNDCHILD, registerRootWndChild);
  78. VCB(UNREGISTERROOTWNDCHILD, unregisterRootWndChild);
  79. CB(FINDROOTWNDCHILD, findRootWndChild);
  80. CB(ENUMROOTWNDCHILDREN, enumRootWndChildren);
  81. CB(GETNUMROOTWNDCHILDREN, getNumRootWndChildren);
  82. CB(ISVIRTUAL, isVirtual);
  83. VCB(BRINGVTOFRONT, bringVirtualToFront);
  84. VCB(BRINGVTOBACK, bringVirtualToBack);
  85. VCB(BRINGVABOVE, bringVirtualAbove);
  86. VCB(BRINGVBELOW, bringVirtualBelow);
  87. CB(CHECKDBLCLK, checkDoubleClick);
  88. VCB(SETVCAPTURE, setVirtualChildCapture);
  89. CB(GETVCAPTURE, getVirtualChildCapture);
  90. CB(PTINREGION, ptInRegion);
  91. VCB(CLIENTSCREEN, clientToScreen);
  92. VCB(SCREENCLIENT, screenToClient);
  93. CB(ONACTIVATE, onActivate);
  94. VCB(ACTIVATE, activate);
  95. CB(ONDEACTIVATE, onDeactivate);
  96. CB(ISACTIVATED, isActive);
  97. CB(HANDLETRANSPARENCY, handleTransparency);
  98. CB(HANDLEDESKTOPALPHA, handleDesktopAlpha);
  99. CB(GETNOTIFYID, getNotifyId);
  100. VCB(SETENABLED, setEnabled);
  101. CB(ONENABLE, onEnable);
  102. CB(ISENABLED, isEnabled);
  103. CB(GETPAINTALPHA, getPaintingAlpha);
  104. VCB(SETALPHA, setAlpha);
  105. VCB(GETALPHA, getAlpha);
  106. VCB(SETCLICKTHROUGH, setClickThrough);
  107. VCB(SETTOOLTIP, setTip);
  108. CB(RUNMODAL, runModal);
  109. VCB(ENDMODAL, endModal);
  110. CB(WANTAUTOCONTEXTMENU, wantAutoContextMenu);
  111. VCB(ONCANCELCAPTURE, onCancelCapture);
  112. VCB(CANCELCAPTURE, cancelCapture);
  113. VCB(BRINGTOFRONT, bringToFront);
  114. VCB(BRINGTOBACK, bringToBack);
  115. VCB(SETFOCUS, setFocus);
  116. CB(GOTFOCUS, gotFocus);
  117. CB(ONGETFOCUS, onGetFocus);
  118. CB(ONKILLFOCUS, onKillFocus);
  119. CB(GETNEXTVFOCUS, getNextVirtualFocus);
  120. VCB(SETVFOCUS, setVirtualChildFocus);
  121. CB(WANTFOCUS, wantFocus);
  122. CB(ONACCELERATOREVENT, onAcceleratorEvent);
  123. CB(ONCHAR, onChar);
  124. CB(ONKEYDOWN, onKeyDown);
  125. CB(ONKEYUP, onKeyUp);
  126. CB(ONSYSKEYDOWN, onSysKeyDown);
  127. CB(ONSYSKEYUP, onSysKeyUp);
  128. CB(GETREGIONOP, getRegionOp);
  129. VCB(SETREGIONOP, setRegionOp);
  130. VCB(INVALWNDRGN, invalidateWindowRegion);
  131. CB(GETCOMPOSEDRGN, getComposedRegion);
  132. CB(GETSUBTRACTORRGN, getSubtractorRegion);
  133. CB(ISRECTRGN, isRectRgn);
  134. VCB(SETRECTRGN, setRectRgn);
  135. CB(GETDEPENDENCYPTR, rootwnd_getDependencyPtr);
  136. VCB(ADDMINMAXENFORCER, addMinMaxEnforcer);
  137. VCB(REMOVEMINMAXENFORCER, removeMinMaxEnforcer);
  138. CB(GETNUMMINMAXENFORCERS, getNumMinMaxEnforcers);
  139. CB(ENUMMINMAXENFORCER, enumMinMaxEnforcer);
  140. VCB(SIGNALMINMAXCHANGED, signalMinMaxEnforcerChanged);
  141. CB(ROOTWNDONACTION, onAction);
  142. VCB(SETRENDERBASETEXTURE, setRenderBaseTexture);
  143. CB(GETRENDERBASETEXTURE, getRenderBaseTexture);
  144. VCB(RENDERBASETEXTURE, rootwnd_renderBaseTexture);
  145. CB(TRIGGEREVENT, triggerEvent);
  146. CB(GETFLAG, getFlag);
  147. CB(ALLOWDEACTIVATE, allowDeactivation);
  148. VCB(SETALLOWDEACTIVATE, setAllowDeactivation);
  149. CB(FINDWND_BYID, findWindow);
  150. CB(FINDWND_BYGUID, findWindowByInterface);
  151. CB(FINDWND_BYCB, findWindowByCallback);
  152. CB(FINDWNDCHAIN, findWindowChain);
  153. VCB(SETTABORDER, setTabOrder);
  154. CB(GETTABORDER, getTabOrder);
  155. VCB(SETVIRTUALTABORDER, setVirtualTabOrder);
  156. CB(GETVIRTUALTABORDER, getVirtualTabOrder);
  157. VCB(SETAUTOTABORDER, setAutoTabOrder);
  158. VCB(SETVIRTUALAUTOTABORDER, setVirtualAutoTabOrder);
  159. CB(GETCURVIRTUALCHILDFOCUS, getCurVirtualChildFocus);
  160. CB(GETTAB, getTab);
  161. VCB(FOCUSNEXT, focusNext);
  162. VCB(FOCUSPREVIOUS, focusPrevious);
  163. VCB(SETWINDOWTITLE, setWindowTitle);
  164. CB(ENUMTAB, enumTab);
  165. CB(GETNUMTABS, getNumTabs);
  166. VCB(ONSETROOTFOCUS, onSetRootFocus);
  167. VCB(SETFOCUSONCLICK, setFocusOnClick);
  168. CB(GETFOCUSONCLICK, getFocusOnClick);
  169. VCB(SETNODOUBLECLICKS, setNoDoubleClicks);
  170. VCB(SETNOLEFTCLICKS, setNoLeftClicks);
  171. VCB(SETNORIGHTCLICKS, setNoRightClicks);
  172. VCB(SETNOMOUSEMOVES, setNoMouseMoves);
  173. VCB(SETNOCONTEXTMENUS, setNoContextMenus);
  174. CB(WANTLEFTCLICKS, wantLeftClicks);
  175. CB(WANTRIGHTCLICKS, wantRightClicks);
  176. CB(WANTDOUBLECLICKS, wantDoubleClicks);
  177. CB(WANTMOUSEMOVES, wantMouseMoves);
  178. CB(WANTCONTEXTMENUS, wantContextMenus);
  179. CB(WANTACTIVATION, wantActivation);
  180. VCB(SETDEFAULTCURSOR, setDefaultCursor);
  181. CB(GETACCESSIBLEOBJECT, getAccessibleObject);
  182. CB(ACCGETSTATE,accessibility_getState);
  183. #ifndef WA3COMPATIBILITY
  184. VCB(SETDROPTARGET, setDropTarget);
  185. CB(GETDROPTARGET, getDropTarget);
  186. #endif
  187. #ifdef EXPERIMENTAL_INDEPENDENT_AOT
  188. VCB(SETALWAYSONTOP, setAlwaysOnTop);
  189. CB(GETALWAYSONTOP, getAlwaysOnTop);
  190. #endif
  191. CB(ISMINIMIZED, isMinimized);
  192. VCB(MAXIMIZE, maximize);
  193. VCB(RESTORE, restore);
  194. CB(GETRESTOREDRECT, getRestoredRect);
  195. END_DISPATCH;
  196. #undef CBCLASS