Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#584 commctrl.h add-on

WSL
closed
nobody
None
fixed
Known_bugs
2013-01-30
2004-06-01
Rocher Laurent
No

W32api : 2.5
File : commctrl.h

Hi,

I'm working on Win32::GUI perl extension
(http://sourceforge.net/projects/perl-win32-gui) and we
detect some features missing in commctrl.h when build it
with MinGW.

Laurent.

---

MSDN documentation can be found here :
http://msdn.microsoft.com/library/en-
us/shellcc/platform/commctls/indivcontrol.asp

---

Animate control : Missing Animate_OpenEx macro

#define Animate_OpenEx(w,h,s) (BOOL)SNDMSG
(w,ACM_OPEN,(WPARAM)h,(LPARAM)(LPTSTR)(s))

DateTime Control : Misspelling DateTime_GetSystemtime
& DateTime_SetSystemtime

#define DateTime_GetSystemtime(hwnd,lpsystime)
SNDMSG(hwnd,DTM_GETSYSTEMTIME,0,(LPARAM)
lpsystime)
#define DateTime_SetSystemtime(hwnd,flag,lpsystime)
SNDMSG(hwnd,DTM_SETSYSTEMTIME,(WPARAM)flag,
(LPARAM)lpsystime)

ListView Control : Missing macro and error in
GetNumberOfWorkAreas

#if (_WIN32_IE >= 0x0400)
#define LVM_SETUNICODEFORMAT
CCM_SETUNICODEFORMAT
#define ListView_SetUnicodeFormat(w, f) (BOOL)
SNDMSG((w), LVM_SETUNICODEFORMAT, (WPARAM)(f),
0)

#define LVM_GETUNICODEFORMAT
CCM_GETUNICODEFORMAT
#define ListView_GetUnicodeFormat(w) (BOOL)SNDMSG
((w), LVM_GETUNICODEFORMAT, 0, 0)
#endif

#if (_WIN32_IE >= 0x0300)
#define ListView_SetItemCountEx(w, i, f) SNDMSG((w),
LVM_SETITEMCOUNT, (WPARAM)(i), (LPARAM)(f))
#endif

#define ListView_GetISearchString(w, lpsz) (BOOL)
SNDMSG((w), LVM_GETISEARCHSTRING, 0, (LPARAM)
(LPTSTR)(lpsz))

#define ListView_GetNumberOfWorkAreas(w,n) (BOOL)
SNDMSG((w),LVM_GETNUMBEROFWORKAREAS,0,
(LPARAM)(UINT *)(n))

TreeView control : Missing TreeView_GetLastVisible
macro

#if (_WIN32_IE >= 0x0400)
#define TreeView_GetLastVisible(w)
TreeView_GetNextItem(w,NULL,TVGN_LASTVISIBLE)
#endif

Header control : Missing macros

#if (_WIN32_IE >= 0x0300)
#define Header_CreateDragImage(w, i) (HIMAGELIST)
SNDMSG((w), HDM_CREATEDRAGIMAGE, (WPARAM)i, 0)
#define Header_SetImageList(w,l) (HIMAGELIST)
SNDMSG((w), HDM_SETIMAGELIST, 0, (LPARAM)l)
#define Header_GetImageList(w) (HIMAGELIST)SNDMSG
((w),HDM_GETIMAGELIST,0,0)
#endif

#if (_WIN32_IE >= 0x0400)
#define Header_GetUnicodeFormat(w) (BOOL)SNDMSG
((w),HDM_GETUNICODEFORMAT,0,0)
#define Header_SetUnicodeFormat(w,f) (BOOL)SNDMSG
((w),HDM_SETUNICODEFORMAT,(WPARAM)(f),0)
#endif

MonthCal : missing message and cast.

#define MCM_GETUNICODEFORMAT
CCM_GETUNICODEFORMAT
#define MCM_SETUNICODEFORMAT
CCM_SETUNICODEFORMAT

#define MonthCal_SetRange(w,f,st) (BOOL)SNDMSG
((w),MCM_SETRANGE,(WPARAM)(f),(LPARAM)(st))

Toolbar : missing define

#if (_WIN32_IE >= 0x0300)
#define TBSTATE_ELLIPSES 0x40
#endif

ImageList :

#if (_WIN32_IE >= 0x0400)
HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST
himl);
#endif

Discussion

  • Luke Dunstan
    Luke Dunstan
    2004-06-05

    Logged In: YES
    user_id=30442

    Thanks, I have committed the changes to CVS. If possible, it
    would be better in future if you provide a patch to the header
    file (using diff -u) and a ChangeLog entry like this one:

    2004-06-02 Rocher Laurent
    <lrocher@users.sourceforge.net>

    \* include/commctrl.h \(Animate\_OpenEx\): Define.
    \(DateTime\_GetSystemTime,
    

    DateTime_SetSystemTime): Correct names.
    (ListView_GetNumberOfWorkAreas): Correct macro.
    (ListView_SetUnicodeFormat,
    ListView_GetUnicodeFormat,
    ListView_SetItemCountEx,
    ListView_GetISearchString,
    TreeView_GetLastVisible, Header_CreateDragImage,
    Header_SetImageList, Header_GetImageList): Define.
    (LVM_SETUNICODEFORMAT,
    LVM_GETUNICODEFORMAT,
    MCM_GETUNICODEFORMAT,
    MCM_SETUNICODEFORMAT,
    TBSTATE_ELLIPSES): Define.
    (MonthCal_SetRange): Correct macro.
    (ImageList_Duplicate): Declare.

     
  • Luke Dunstan
    Luke Dunstan
    2004-06-05

    • status: open --> closed-accepted
     
  • Earnie Boyd
    Earnie Boyd
    2013-01-30

    • labels: w32api (deprecated use WSL) -->
    • status: closed-accepted --> closed
    • resolution: --> accepted
    • category: --> Known_bugs
    • milestone: --> WSL
     
  • Earnie Boyd
    Earnie Boyd
    2013-01-30

    • resolution: accepted --> fixed