00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00047 #ifndef WINSTL_INCL_WINSTL_CONTROLS_H_COMMCTRL_FUNCTIONS
00048 #define WINSTL_INCL_WINSTL_CONTROLS_H_COMMCTRL_FUNCTIONS
00049 
00050 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00051 # define WINSTL_VER_WINSTL_CONTROLS_H_COMMCTRL_FUNCTIONS_MAJOR      4
00052 # define WINSTL_VER_WINSTL_CONTROLS_H_COMMCTRL_FUNCTIONS_MINOR      0
00053 # define WINSTL_VER_WINSTL_CONTROLS_H_COMMCTRL_FUNCTIONS_REVISION   3
00054 # define WINSTL_VER_WINSTL_CONTROLS_H_COMMCTRL_FUNCTIONS_EDIT       44
00055 #endif 
00056 
00057 
00058 
00059 
00060 
00061 #ifndef WINSTL_INCL_WINSTL_H_WINSTL
00062 # include <winstl/winstl.h>
00063 #endif 
00064 #ifndef WINSTL_INCL_WINSTL_WINDOW_H_MESSAGE_FUNCTIONS
00065 # include <winstl/window/message_functions.h>
00066 #endif 
00067 
00068 #ifndef STLSOFT_INCL_H_COMMCTRL
00069 # define STLSOFT_INCL_H_COMMCTRL
00070 # include <commctrl.h>
00071 #endif 
00072 
00073 
00074 
00075 
00076 
00077 #if !defined(_WINSTL_NO_NAMESPACE) && \
00078     !defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
00079 # if defined(_STLSOFT_NO_NAMESPACE)
00080 
00081 namespace winstl
00082 {
00083 # else
00084 
00085 
00086 namespace stlsoft
00087 {
00088 
00089 namespace winstl_project
00090 {
00091 
00092 # endif 
00093 #endif 
00094 
00095 
00096 
00097 
00098 
00107 STLSOFT_INLINE HTREEITEM winstl__treeview_getnextitem(HWND hwnd, HTREEITEM hitem, UINT flag)
00108 {
00109     return stlsoft_reinterpret_cast(HTREEITEM, winstl__SendMessage(hwnd, TVM_GETNEXTITEM, stlsoft_static_cast(WPARAM, flag), stlsoft_reinterpret_cast(LPARAM, hitem)));
00110 }
00111 
00119 STLSOFT_INLINE HTREEITEM winstl__treeview_getchilditem(HWND hwnd, HTREEITEM hitem)
00120 {
00121     return winstl__treeview_getnextitem(hwnd, hitem, TVGN_CHILD);
00122 }
00123 
00130 STLSOFT_INLINE HTREEITEM winstl__treeview_getrootitem(HWND hwnd)
00131 {
00132     return winstl__treeview_getnextitem(hwnd, 0, TVGN_ROOT);
00133 }
00134 
00141 STLSOFT_INLINE HTREEITEM winstl__treeview_getcaretitem(HWND hwnd)
00142 {
00143     return winstl__treeview_getnextitem(hwnd, 0, TVGN_CARET);
00144 }
00145 
00146 
00147 
00148 
00149 
00150 #ifdef STLSOFT_DOCUMENTATION_SKIP_SECTION
00151 namespace winstl
00152 {
00153 #endif 
00154 
00155 
00156 
00157 
00158 
00159 #ifdef __cplusplus
00160 
00169 inline HTREEITEM treeview_getnextitem(HWND hwnd, HTREEITEM hitem, UINT flag)
00170 {
00171     return winstl__treeview_getnextitem(hwnd, hitem, flag);
00172 }
00173 
00181 inline HTREEITEM treeview_getchilditem(HWND hwnd, HTREEITEM hitem)
00182 {
00183     return winstl__treeview_getnextitem(hwnd, hitem, TVGN_CHILD);
00184 }
00185 
00192 inline HTREEITEM treeview_getrootitem(HWND hwnd)
00193 {
00194     return winstl__treeview_getnextitem(hwnd, 0, TVGN_ROOT);
00195 }
00196 
00203 inline HTREEITEM treeview_getcaretitem(HWND hwnd)
00204 {
00205     return winstl__treeview_getnextitem(hwnd, 0, TVGN_CARET);
00206 }
00207 #endif 
00208 
00209 
00210 
00211 
00212 
00213 #ifdef STLSOFT_UNITTEST
00214 # include "./unittest/commctrl_functions_unittest_.h"
00215 #endif 
00216 
00217 
00218 
00219 #ifndef _WINSTL_NO_NAMESPACE
00220 # if defined(_STLSOFT_NO_NAMESPACE) || \
00221      defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
00222 } 
00223 # else
00224 } 
00225 } 
00226 # endif 
00227 #endif 
00228 
00229 
00230 
00231 #endif 
00232 
00233