Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

296 lines
22 KiB

  1. // cctlww.h - commctl Unicode wrapper
  2. //-----------------------------------------------------------------
  3. // Microsoft Confidential
  4. // Copyright 1998 Microsoft Corporation. All Rights Reserved.
  5. //
  6. // Paul Chase Dempsey - [email protected]
  7. // August 3, 1998
  8. //----------------------------------------------------------------
  9. #ifndef __CCTLWW_H__
  10. #define __CCTLWW_H__
  11. #include <commctrl.h>
  12. UINT WINAPI CodePageFromLCID(LCID lcid);
  13. enum CCTLWINTYPE { W_ListView, W_TreeView, W_TabCtrl };
  14. // Just like CreateWindowEx, but uses CCTLWINTYPE enumeration
  15. HWND WINAPI W_CreateControlWindow (
  16. DWORD dwStyleEx,
  17. DWORD dwStyle,
  18. CCTLWINTYPE wt,
  19. LPCWSTR pwszTitle,
  20. int x, int y, int width, int height,
  21. HWND parent,
  22. HMENU menu,
  23. HINSTANCE inst,
  24. LPVOID lParam
  25. );
  26. // Call this for controls created via a dialog
  27. BOOL WINAPI W_EnableUnicode (HWND hwnd, CCTLWINTYPE wt);
  28. int WINAPI W_CompareString (LCID lcid, DWORD dwFlags, PCWSTR str1, int cch1, PCWSTR str2, int cch2);
  29. int WINAPI W_cbchMaxAcp(); // max bytes per char for CP_ACP (less ugly name would be nice :-)
  30. //================================================================
  31. // Generic A/W utils to support creating windows as Unicode when possible
  32. HWND WINAPI W_CreateWindowEx (
  33. // Standard CreateWindowEx params
  34. DWORD dwExStyle,
  35. LPCWSTR lpClassName,
  36. LPCWSTR lpWindowName,
  37. DWORD dwStyle,
  38. int X,
  39. int Y,
  40. int nWidth,
  41. int nHeight,
  42. HWND hWndParent,
  43. HMENU hMenu,
  44. HINSTANCE hInstance,
  45. LPVOID lpParam,
  46. // Return flag whether we got a Unicode one (may be NULL).
  47. // You can always call IsWindowUnicode() to see if an hwnd is Unicode.
  48. BOOL * pfUnicode = NULL
  49. );
  50. inline HWND WINAPI W_CreateWindow(LPCWSTR lpClassName, LPCWSTR lpWindowName,
  51. DWORD dwStyle,
  52. int x, int y, int nWidth, int nHeight,
  53. HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam,
  54. BOOL * pfUni = NULL)
  55. {
  56. return W_CreateWindowEx(0L, lpClassName, lpWindowName,
  57. dwStyle,
  58. x, y, nWidth, nHeight,
  59. hWndParent, hMenu, hInstance, lpParam, pfUni);
  60. }
  61. void WINAPI W_SubClassWindow (HWND hwnd, LONG_PTR Proc, BOOL fUnicode);
  62. WNDPROC WINAPI W_GetWndProc (HWND hwnd, BOOL fUnicode);
  63. LRESULT WINAPI W_DelegateWindowProc (WNDPROC Proc, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  64. LRESULT WINAPI W_DefWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  65. LRESULT WINAPI W_DefDlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  66. BOOL WINAPI W_HasText (HWND hwnd);
  67. int WINAPI W_GetTextLengthExact (HWND hwnd);
  68. int WINAPI W_GetWindowText (HWND hwnd, PWSTR psz, int cchMax);
  69. BOOL WINAPI W_SetWindowText (HWND hwnd, PCWSTR psz);
  70. LRESULT WINAPI W_SendStringMessage (HWND hwnd, UINT msg, WPARAM wParam, PCWSTR psz);
  71. // ComboBox
  72. // '\n'-delimited list of strings, return length of returned string
  73. int WINAPI W_ComboBox_GetListText (HWND hwnd, PWSTR psz, int cchMax);
  74. // '\n'-delimited list of strings, return count of items added
  75. int WINAPI W_ComboBox_SetListText (HWND hwnd, PWSTR psz, int cItemsMax);
  76. #define W_ComboBox_AddString(hwnd, psz) ((int)(DWORD)W_SendStringMessage((hwnd), CB_ADDSTRING, 0L, psz))
  77. #define W_ComboBox_InsertString(hwnd, index, psz) ((int)(DWORD)W_SendStringMessage((hwnd), CB_INSERTSTRING, (WPARAM)(int)(index), psz))
  78. #define W_ComboBox_FindStringExact(hwnd, index, psz) ((int)(DWORD)W_SendStringMessage((hwnd), CB_FINDSTRINGEXACT, (WPARAM)(int)(index), psz))
  79. #define W_ComboBox_SelectString(hwnd, index, psz) ((int)(DWORD)W_SendStringMessage((hwnd), CB_SELECTSTRING, (WPARAM)(int)(index), psz))
  80. //================================================================
  81. // List View
  82. //================================================================
  83. BOOL WINAPI W_IsListViewUnicode(HWND hwndLV);
  84. BOOL WINAPI W_ListView_GetItem_fn (HWND hwnd, LV_ITEMW * pitem);
  85. BOOL WINAPI W_ListView_SetItem_fn (HWND hwnd, LV_ITEMW * pitem);
  86. int WINAPI W_ListView_InsertItem_fn (HWND hwnd, LV_ITEMW * pitem);
  87. int WINAPI W_ListView_FindItem_fn (HWND hwnd, int iStart, LV_FINDINFOW * plvfi);
  88. int WINAPI W_ListView_GetStringWidth_fn (HWND hwnd, LPCWSTR psz);
  89. HWND WINAPI W_ListView_EditLabel_fn (HWND hwnd, int i);
  90. BOOL WINAPI W_ListView_GetColumn_fn (HWND hwnd, int iCol, LV_COLUMNW * pcol);
  91. BOOL WINAPI W_ListView_SetColumn_fn (HWND hwnd, int iCol, LV_COLUMNW * pcol);
  92. int WINAPI W_ListView_InsertColumn_fn (HWND hwnd, int iCol, LV_COLUMNW * pcol);
  93. void WINAPI W_ListView_GetItemText_fn (HWND hwnd, int i, int iSubItem_, LPWSTR pszText_, int cchTextMax_);
  94. void WINAPI W_ListView_SetItemText_fn (HWND hwnd, int i, int iSubItem_, LPCWSTR pszText_);
  95. BOOL WINAPI W_ListView_GetISearchString_fn (HWND hwnd, LPWSTR lpsz);
  96. BOOL WINAPI W_ListView_SetBkImage_fn (HWND hwnd, LPLVBKIMAGEW plvbki);
  97. BOOL WINAPI W_ListView_GetBkImage_fn (HWND hwnd, LPLVBKIMAGEW plvbki);
  98. #define W_ListView_GetBkColor(hwnd) ListView_GetBkColor(hwnd)
  99. #define W_ListView_SetBkColor(hwnd, clrBk) ListView_SetBkColor(hwnd, clrBk)
  100. #define W_ListView_GetImageList(hwnd, iImageList) ListView_GetImageList(hwnd, iImageList)
  101. #define W_ListView_SetImageList(hwnd, himl, iImageList) ListView_SetImageList(hwnd, himl, iImageList)
  102. #define W_ListView_GetItemCount(hwnd) ListView_GetItemCount(hwnd)
  103. #define W_ListView_GetItem(hwnd, pitem) W_ListView_GetItem_fn(hwnd, pitem)
  104. #define W_ListView_SetItem(hwnd, pitem) W_ListView_SetItem_fn(hwnd, pitem)
  105. #define W_ListView_InsertItem(hwnd, pitem) W_ListView_InsertItem_fn(hwnd, pitem)
  106. #define W_ListView_DeleteItem(hwnd, i) ListView_DeleteItem(hwnd, i)
  107. #define W_ListView_DeleteAllItems(hwnd) ListView_DeleteAllItems(hwnd)
  108. #define W_ListView_GetCallbackMask(hwnd) ListView_GetCallbackMask(hwnd)
  109. #define W_ListView_SetCallbackMask(hwnd, mask) ListView_SetCallbackMask(hwnd, mask)
  110. #define W_ListView_GetNextItem(hwnd, i, flags) ListView_GetNextItem(hwnd, i, flags)
  111. #define W_ListView_FindItem(hwnd, iStart, plvfi) W_ListView_FindItem_fn(hwnd, iStart, plvfi)
  112. #define W_ListView_GetItemRect(hwnd, i, prc, code) ListView_GetItemRect(hwnd, i, prc, code)
  113. #define W_ListView_SetItemPosition(hwndLV, i, x, y) ListView_SetItemPosition(hwndLV, i, x, y)
  114. #define W_ListView_GetItemPosition(hwndLV, i, ppt) ListView_GetItemPosition(hwndLV, i, ppt)
  115. #define W_ListView_GetStringWidth(hwndLV, psz) W_ListView_GetStringWidth_fn(hwndLV, psz)
  116. #define W_ListView_HitTest(hwndLV, pinfo) ListView_HitTest(hwndLV, pinfo)
  117. #define W_ListView_EnsureVisible(hwndLV, i, fPartialOK) ListView_EnsureVisible(hwndLV, i, fPartialOK)
  118. #define W_ListView_Scroll(hwndLV, dx, dy) ListView_Scroll(hwndLV, dx, dy)
  119. #define W_ListView_RedrawItems(hwndLV, iFirst, iLast) ListView_RedrawItems(hwndLV, iFirst, iLast)
  120. #define W_ListView_Arrange(hwndLV, code) ListView_Arrange(hwndLV, code)
  121. #define W_ListView_EditLabel(hwndLV, i) W_ListView_EditLabel_fn(hwndLV, i)
  122. #define W_ListView_GetEditControl(hwndLV) ListView_GetEditControl(hwndLV)
  123. #define W_ListView_GetColumn(hwnd, iCol, pcol) W_ListView_GetColumn_fn(hwnd, iCol, pcol)
  124. #define W_ListView_SetColumn(hwnd, iCol, pcol) W_ListView_SetColumn_fn(hwnd, iCol, pcol)
  125. #define W_ListView_InsertColumn(hwnd, iCol, pcol) W_ListView_InsertColumn_fn(hwnd, iCol, pcol)
  126. #define W_ListView_DeleteColumn(hwnd, iCol) ListView_DeleteColumn(hwnd, iCol)
  127. #define W_ListView_GetColumnWidth(hwnd, iCol) ListView_GetColumnWidth(hwnd, iCol)
  128. #define W_ListView_SetColumnWidth(hwnd, iCol, cx) ListView_SetColumnWidth(hwnd, iCol, cx)
  129. #define W_ListView_GetHeader(hwnd) ListView_GetHeader(hwnd)
  130. #define W_ListView_CreateDragImage(hwnd, i, lpptUpLeft) ListView_CreateDragImage(hwnd, i, lpptUpLeft)
  131. #define W_ListView_GetViewRect(hwnd, prc) ListView_GetViewRect(hwnd, prc)
  132. #define W_ListView_GetTextColor(hwnd) ListView_GetTextColor(hwnd)
  133. #define W_ListView_SetTextColor(hwnd, clrText) ListView_SetTextColor(hwnd, clrText)
  134. #define W_ListView_GetTextBkColor(hwnd) ListView_GetTextBkColor(hwnd)
  135. #define W_ListView_SetTextBkColor(hwnd, clrTextBk) ListView_SetTextBkColor(hwnd, clrTextBk)
  136. #define W_ListView_GetTopIndex(hwndLV) ListView_GetTopIndex(hwndLV)
  137. #define W_ListView_GetCountPerPage(hwndLV) ListView_GetCountPerPage(hwndLV)
  138. #define W_ListView_GetOrigin(hwndLV, ppt) ListView_GetOrigin(hwndLV, ppt)
  139. #define W_ListView_Update(hwndLV, i) ListView_Update(hwndLV, i)
  140. #define W_ListView_SetItemState(hwndLV, i, data, mask) ListView_SetItemState(hwndLV, i, data, mask)
  141. #define W_ListView_GetItemState(hwndLV, i, mask) ListView_GetItemState(hwndLV, i, mask)
  142. #define W_ListView_GetCheckState(hwndLV, i) ListView_GetCheckState(hwndLV, i)
  143. #define W_ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_) W_ListView_GetItemText_fn(hwndLV, i, iSubItem_, pszText_, cchTextMax_)
  144. #define W_ListView_SetItemText(hwndLV, i, iSubItem_, pszText_) W_ListView_SetItemText_fn(hwndLV, i, iSubItem_, pszText_)
  145. #define W_ListView_SetItemCount(hwndLV, cItems) ListView_SetItemCount(hwndLV, cItems)
  146. #define W_ListView_SetItemCountEx(hwndLV, cItems, dwFlags) ListView_SetItemCountEx(hwndLV, cItems, dwFlags)
  147. #define W_ListView_SortItems(hwndLV, _pfnCompare, _lPrm) ListView_SortItems(hwndLV, _pfnCompare, _lPrm)
  148. #define W_ListView_SetItemPosition32(hwndLV, i, x, y) ListView_SetItemPosition32(hwndLV, i, x, y)
  149. #define W_ListView_GetSelectedCount(hwndLV) ListView_GetSelectedCount(hwndLV)
  150. #define W_ListView_GetItemSpacing(hwndLV, fSmall) ListView_GetItemSpacing(hwndLV, fSmall)
  151. #define W_ListView_GetISearchString(hwndLV, lpsz) W_ListView_GetISearchString_fn(hwndLV, lpsz)
  152. #define W_ListView_SetIconSpacing(hwndLV, cx, cy) ListView_SetIconSpacing(hwndLV, cx, cy)
  153. #define W_ListView_SetExtendedListViewStyle(hwndLV, dw) ListView_SetExtendedListViewStyle(hwndLV, dw)
  154. #define W_ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw) ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw)
  155. #define W_ListView_GetExtendedListViewStyle(hwndLV) ListView_GetExtendedListViewStyle(hwndLV)
  156. #define W_ListView_GetExtendedListViewStyle(hwndLV) ListView_GetExtendedListViewStyle(hwndLV)
  157. #define W_ListView_GetSubItemRect(hwnd, iItem, iSubItem, code, prc) ListView_GetSubItemRect(hwnd, iItem, iSubItem, code, prc)
  158. #define W_ListView_SubItemHitTest(hwnd, plvhti) ListView_SubItemHitTest(hwnd, plvhti)
  159. #define W_ListView_SetColumnOrderArray(hwnd, iCount, pi) ListView_SetColumnOrderArray(hwnd, iCount, pi)
  160. #define W_ListView_GetColumnOrderArray(hwnd, iCount, pi) ListView_GetColumnOrderArray(hwnd, iCount, pi)
  161. #define W_ListView_SetHotItem(hwnd, i) ListView_SetHotItem(hwnd, i)
  162. #define W_ListView_GetHotItem(hwnd) ListView_GetHotItem(hwnd)
  163. #define W_ListView_SetHotCursor(hwnd, hcur) ListView_SetHotCursor(hwnd, hcur)
  164. #define W_ListView_GetHotCursor(hwnd) ListView_GetHotCursor(hwnd)
  165. #define W_ListView_ApproximateViewRect(hwnd, iWidth, iHeight, iCount) ListView_ApproximateViewRect(hwnd, iWidth, iHeight, iCount)
  166. #define W_ListView_SetWorkAreas(hwnd, nWorkAreas, prc) ListView_SetWorkAreas(hwnd, nWorkAreas, prc)
  167. #define W_ListView_GetWorkAreas(hwnd, nWorkAreas, prc) ListView_GetWorkAreas(hwnd, nWorkAreas, prc)
  168. #define W_ListView_GetNumberOfWorkAreas(hwnd, pnWorkAreas) ListView_GetNumberOfWorkAreas(hwnd, pnWorkAreas)
  169. #define W_ListView_GetSelectionMark(hwnd) ListView_GetSelectionMark(hwnd)
  170. #define W_ListView_SetSelectionMark(hwnd, i) ListView_SetSelectionMark(hwnd, i)
  171. #define W_ListView_SetHoverTime(hwndLV, dwHoverTimeMs) ListView_SetHoverTime(hwndLV, dwHoverTimeMs)
  172. #define W_ListView_GetHoverTime(hwndLV) ListView_GetHoverTime(hwndLV)
  173. #define W_ListView_SetToolTipHwnd(hwndLV, hwndNewHwnd) ListView_SetToolTipHwnd(hwndLV, hwndNewHwnd)
  174. #define W_ListView_GetToolTipHwnd(hwndLV) ListView_GetToolTipHwnd(hwndLV)
  175. #define W_ListView_SetBkImage(hwnd, plvbki) W_ListView_SetBkImage_fn(hwnd, plvbki)
  176. #define W_ListView_GetBkImage(hwnd, plvbki) W_ListView_GetBkImage_fn(hwnd, plvbki)
  177. //================================================================
  178. // Tree View
  179. //================================================================
  180. BOOL WINAPI W_IsTreeViewUnicode(HWND hwndTV);
  181. HTREEITEM WINAPI W_TreeView_InsertItem_fn(HWND hwnd, LPTV_INSERTSTRUCTW lpis);
  182. BOOL WINAPI W_TreeView_GetItem_fn(HWND hwnd, TV_ITEMW * pitem);
  183. BOOL WINAPI W_TreeView_SetItem_fn(HWND hwnd, TV_ITEMW * pitem);
  184. HWND WINAPI W_TreeView_EditLabel_fn(HWND hwnd, HTREEITEM hitem);
  185. BOOL WINAPI W_TreeView_GetISearchString_fn(HWND hwndTV, LPWSTR lpsz);
  186. #define W_TreeView_InsertItem(hwnd, lpis) W_TreeView_InsertItem_fn(hwnd, lpis)
  187. #define W_TreeView_DeleteItem(hwnd, hitem) TreeView_DeleteItem(hwnd, hitem)
  188. #define W_TreeView_DeleteAllItems(hwnd) TreeView_DeleteAllItems(hwnd)
  189. #define W_TreeView_Expand(hwnd, hitem, code) TreeView_Expand(hwnd, hitem, code)
  190. #define W_TreeView_GetItemRect(hwnd, hitem, prc, code) TreeView_GetItemRect(hwnd, hitem, prc, code)
  191. #define W_TreeView_GetCount(hwnd) TreeView_GetCount(hwnd)
  192. #define W_TreeView_GetIndent(hwnd) TreeView_GetIndent(hwnd)
  193. #define W_TreeView_SetIndent(hwnd, indent) TreeView_SetIndent(hwnd, indent)
  194. #define W_TreeView_GetImageList(hwnd, iImage) TreeView_GetImageList(hwnd, iImage)
  195. #define W_TreeView_SetImageList(hwnd, himl, iImage) TreeView_SetImageList(hwnd, himl, iImage)
  196. #define W_TreeView_GetNextItem(hwnd, hitem, code) TreeView_GetNextItem(hwnd, hitem, code)
  197. #define W_TreeView_GetChild(hwnd, hitem) TreeView_GetChild(hwnd, hitem)
  198. #define W_TreeView_GetNextSibling(hwnd, hitem) TreeView_GetNextSibling(hwnd, hitem)
  199. #define W_TreeView_GetPrevSibling(hwnd, hitem) TreeView_GetPrevSibling(hwnd, hitem)
  200. #define W_TreeView_GetParent(hwnd, hitem) TreeView_GetParent(hwnd, hitem)
  201. #define W_TreeView_GetFirstVisible(hwnd) TreeView_GetFirstVisible(hwnd)
  202. #define W_TreeView_GetNextVisible(hwnd, hitem) TreeView_GetNextVisible(hwnd, hitem)
  203. #define W_TreeView_GetPrevVisible(hwnd, hitem) TreeView_GetPrevVisible(hwnd, hitem)
  204. #define W_TreeView_GetSelection(hwnd) TreeView_GetSelection(hwnd)
  205. #define W_TreeView_GetDropHilight(hwnd) TreeView_GetDropHilight(hwnd)
  206. #define W_TreeView_GetRoot(hwnd) TreeView_GetRoot(hwnd)
  207. #define W_TreeView_GetLastVisible(hwnd) TreeView_GetLastVisible(hwnd)
  208. #define W_TreeView_Select(hwnd, hitem, code) TreeView_Select(hwnd, hitem, code)
  209. #define W_TreeView_SelectItem(hwnd, hitem) TreeView_SelectItem(hwnd, hitem)
  210. #define W_TreeView_SelectDropTarget(hwnd, hitem) TreeView_SelectDropTarget(hwnd, hitem)
  211. #define W_TreeView_SelectSetFirstVisible(hwnd, hitem) TreeView_SelectSetFirstVisible(hwnd, hitem)
  212. #define W_TreeView_GetItem(hwnd, pitem) W_TreeView_GetItem_fn(hwnd, pitem)
  213. #define W_TreeView_SetItem(hwnd, pitem) W_TreeView_SetItem_fn(hwnd, pitem)
  214. #define W_TreeView_EditLabel(hwnd, hitem) W_TreeView_EditLabel_fn(hwnd, hitem)
  215. #define W_TreeView_GetEditControl(hwnd) TreeView_GetEditControl(hwnd)
  216. #define W_TreeView_GetVisibleCount(hwnd) TreeView_GetVisibleCount(hwnd)
  217. #define W_TreeView_HitTest(hwnd, lpht) TreeView_HitTest(hwnd, lpht)
  218. #define W_TreeView_CreateDragImage(hwnd, hitem) TreeView_CreateDragImage(hwnd, hitem)
  219. #define W_TreeView_SortChildren(hwnd, hitem, recurse) TreeView_SortChildren(hwnd, hitem, recurse)
  220. #define W_TreeView_EnsureVisible(hwnd, hitem) TreeView_EnsureVisible(hwnd, hitem)
  221. #define W_TreeView_SortChildrenCB(hwnd, psort, recurse) TreeView_SortChildrenCB(hwnd, psort, recurse)
  222. #define W_TreeView_EndEditLabelNow(hwnd, fCancel) TreeView_EndEditLabelNow(hwnd, fCancel)
  223. #define W_TreeView_SetToolTips(hwnd, hwndTT) TreeView_SetToolTips(hwnd, hwndTT)
  224. #define W_TreeView_GetToolTips(hwnd) TreeView_GetToolTips(hwnd)
  225. #define W_TreeView_GetISearchString(hwndTV, lpsz) W_TreeView_GetISearchString_fn(hwndTV, lpsz)
  226. #define W_TreeView_SetInsertMark(hwnd, hItem, fAfter) TreeView_SetInsertMark(hwnd, hItem, fAfter)
  227. #define W_TreeView_SetItemHeight(hwnd, iHeight) TreeView_SetItemHeight(hwnd, iHeight)
  228. #define W_TreeView_GetItemHeight(hwnd) TreeView_GetItemHeight(hwnd)
  229. #define W_TreeView_SetBkColor(hwnd, clr) TreeView_SetBkColor(hwnd, clr)
  230. #define W_TreeView_SetTextColor(hwnd, clr) TreeView_SetTextColor(hwnd, clr)
  231. #define W_TreeView_GetBkColor(hwnd) TreeView_GetBkColor(hwnd)
  232. #define W_TreeView_GetTextColor(hwnd) TreeView_GetTextColor(hwnd)
  233. #define W_TreeView_SetScrollTime(hwnd, uTime) TreeView_SetScrollTime(hwnd, uTime)
  234. #define W_TreeView_GetScrollTime(hwnd) TreeView_GetScrollTime(hwnd)
  235. //================================================================
  236. // TabCtrl
  237. //================================================================
  238. BOOL WINAPI W_IsTabCtrlUnicode(HWND hwndTC);
  239. BOOL WINAPI W_TabCtrl_GetItem_fn(HWND hwnd, int iItem, TC_ITEMW * pitem);
  240. BOOL WINAPI W_TabCtrl_SetItem_fn(HWND hwnd, int iItem, TC_ITEMW * pitem);
  241. int WINAPI W_TabCtrl_InsertItem_fn(HWND hwnd, int iItem, TC_ITEMW * pitem);
  242. #define W_TabCtrl_GetImageList(hwnd) TabCtrl_GetImageList(hwnd)
  243. #define W_TabCtrl_SetImageList(hwnd, himl) TabCtrl_SetImageList(hwnd, himl)
  244. #define W_TabCtrl_GetItemCount(hwnd) TabCtrl_GetItemCount(hwnd)
  245. #define W_TabCtrl_GetItem(hwnd, iItem, pitem) W_TabCtrl_GetItem_fn(hwnd, iItem, pitem)
  246. #define W_TabCtrl_SetItem(hwnd, iItem, pitem) W_TabCtrl_SetItem_fn(hwnd, iItem, pitem)
  247. #define W_TabCtrl_InsertItem(hwnd, iItem, pitem) W_TabCtrl_InsertItem_fn(hwnd, iItem, pitem)
  248. #define W_TabCtrl_DeleteItem(hwnd, i) TabCtrl_DeleteItem(hwnd, i)
  249. #define W_TabCtrl_DeleteAllItems(hwnd) TabCtrl_DeleteAllItems(hwnd)
  250. #define W_TabCtrl_GetItemRect(hwnd, i, prc) TabCtrl_GetItemRect(hwnd, i, prc)
  251. #define W_TabCtrl_GetCurSel(hwnd) TabCtrl_GetCurSel(hwnd)
  252. #define W_TabCtrl_SetCurSel(hwnd, i) TabCtrl_SetCurSel(hwnd, i)
  253. #define W_TabCtrl_HitTest(hwndTC, pinfo) TabCtrl_HitTest(hwndTC, pinfo)
  254. #define W_TabCtrl_SetItemExtra(hwndTC, cb) TabCtrl_SetItemExtra(hwndTC, cb)
  255. #define W_TabCtrl_AdjustRect(hwnd, bLarger, prc) TabCtrl_AdjustRect(hwnd, bLarger, prc)
  256. #define W_TabCtrl_SetItemSize(hwnd, x, y) TabCtrl_SetItemSize(hwnd, x, y)
  257. #define W_TabCtrl_RemoveImage(hwnd, i) TabCtrl_RemoveImage(hwnd, i)
  258. #define W_TabCtrl_SetPadding(hwnd, cx, cy) TabCtrl_SetPadding(hwnd, cx, cy)
  259. #define W_TabCtrl_GetRowCount(hwnd) TabCtrl_GetRowCount(hwnd)
  260. #define W_TabCtrl_GetToolTips(hwnd) TabCtrl_GetToolTips(hwnd)
  261. #define W_TabCtrl_SetToolTips(hwnd, hwndTT) TabCtrl_SetToolTips(hwnd, hwndTT)
  262. #define W_TabCtrl_GetCurFocus(hwnd) TabCtrl_GetCurFocus(hwnd)
  263. #define W_TabCtrl_SetCurFocus(hwnd, i) TabCtrl_SetCurFocus(hwnd, i)
  264. #define W_TabCtrl_SetMinTabWidth(hwnd, x) TabCtrl_SetMinTabWidth(hwnd, x)
  265. #define W_TabCtrl_DeselectAll(hwnd, fExcludeFocus) TabCtrl_DeselectAll(hwnd, fExcludeFocus)
  266. #define W_TabCtrl_HighlightItem(hwnd, i, fHighlight) TabCtrl_HighlightItem(hwnd, i, fHighlight)
  267. #define W_TabCtrl_SetExtendedStyle(hwnd, dw) TabCtrl_SetExtendedStyle(hwnd, dw)
  268. #define W_TabCtrl_GetExtendedStyle(hwnd) TabCtrl_GetExtendedStyle(hwnd)
  269. #define W_TabCtrl_SetUnicodeFormat(hwnd, fUnicode) TabCtrl_SetUnicodeFormat(hwnd, fUnicode)
  270. #define W_TabCtrl_GetUnicodeFormat(hwnd) TabCtrl_GetUnicodeFormat(hwnd)
  271. #endif // __CCTLWW_H__