commctrl.rh revision 589fd26cedb2b4ebbed14f2964cad03cc8ebbca2
c869993e79c1eafbec61a56bf6cea848fe754c71xy/*
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Copyright (C) 2008 Vijay Kiran Kamuju
c869993e79c1eafbec61a56bf6cea848fe754c71xy *
c869993e79c1eafbec61a56bf6cea848fe754c71xy * This library is free software; you can redistribute it and/or
c869993e79c1eafbec61a56bf6cea848fe754c71xy * modify it under the terms of the GNU Lesser General Public
c869993e79c1eafbec61a56bf6cea848fe754c71xy * License as published by the Free Software Foundation; either
c869993e79c1eafbec61a56bf6cea848fe754c71xy * version 2.1 of the License, or (at your option) any later version.
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer *
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer * This library is distributed in the hope that it will be useful,
c869993e79c1eafbec61a56bf6cea848fe754c71xy * but WITHOUT ANY WARRANTY; without even the implied warranty of
c869993e79c1eafbec61a56bf6cea848fe754c71xy * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Lesser General Public License for more details.
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer *
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer * You should have received a copy of the GNU Lesser General Public
c869993e79c1eafbec61a56bf6cea848fe754c71xy * License along with this library; if not, write to the Free Software
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
c869993e79c1eafbec61a56bf6cea848fe754c71xy */
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/*
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
c869993e79c1eafbec61a56bf6cea848fe754c71xy * other than GPL or LGPL is available it will apply instead, Sun elects to use only
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
08a0f9b044f01fb540a861b94b63d77dd3d576eechenlu chen - Sun Microsystems - Beijing China * a choice of LGPL license versions is made available with the language indicating
08a0f9b044f01fb540a861b94b63d77dd3d576eechenlu chen - Sun Microsystems - Beijing China * that LGPLv2 or any later version may be used, or where a choice of which version
08a0f9b044f01fb540a861b94b63d77dd3d576eechenlu chen - Sun Microsystems - Beijing China * of the LGPL is applied is otherwise unspecified.
08a0f9b044f01fb540a861b94b63d77dd3d576eechenlu chen - Sun Microsystems - Beijing China */
08a0f9b044f01fb540a861b94b63d77dd3d576eechenlu chen - Sun Microsystems - Beijing China
13485e69b5429e6c7d27301fb3c0deee0e93768aGarrett D'Amore/* Header Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define HDS_HORZ 0x0000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define HDS_BUTTONS 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define HDS_HOTTRACK 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define HDS_HIDDEN 0x0008
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define HDS_DRAGDROP 0x0040
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define HDS_FULLDRAG 0x0080
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define HDS_FILTERBAR 0x0100
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define HDS_FLAT 0x0200
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Rebar Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define RBS_TOOLTIPS 0x0100
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define RBS_VARHEIGHT 0x0200
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define RBS_BANDBORDERS 0x0400
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define RBS_FIXEDORDER 0x0800
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define RBS_REGISTERDROP 0x1000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define RBS_AUTOSIZE 0x2000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define RBS_VERTICALGRIPPER 0x4000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define RBS_DBLCLKTOGGLE 0x8000
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/*Tool tips */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TTS_ALWAYSTIP 0x01
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TTS_NOPREFIX 0x02
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#define TTS_NOANIMATE 0x10
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TTS_NOFADE 0x20
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TTS_BALLOON 0x40
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TTS_CLOSE 0x80
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Statusbar Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define SBARS_SIZEGRIP 0x0100
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define SBARS_TOOLTIPS 0x0800
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define SBT_TOOLTIPS 0x0800
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Toolbar Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TBS_BOTTOM 0x0000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TBS_HORZ 0x0000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TBS_RIGHT 0x0000
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo#define TBS_AUTOTICKS 0x0001
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TBS_VERT 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TBS_LEFT 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TBS_TOP 0x0004
8bb4b220fdb894543e41a5f9037898cf3c3f312bgl#define TBS_BOTH 0x0008
8bb4b220fdb894543e41a5f9037898cf3c3f312bgl#define TBS_NOTICKS 0x0010
8bb4b220fdb894543e41a5f9037898cf3c3f312bgl#define TBS_ENABLESELRANGE 0x0020
8bb4b220fdb894543e41a5f9037898cf3c3f312bgl#define TBS_FIXEDLENGTH 0x0040
75eba5b6d79ed4d2ce3daf7b2806306b6b69a938Robert Mustacchi#define TBS_NOTHUMB 0x0080
75eba5b6d79ed4d2ce3daf7b2806306b6b69a938Robert Mustacchi#define TBS_TOOLTIPS 0x0100
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TBS_REVERSED 0x0200
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TBS_DOWNISLEFT 0x0400
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* UpDown Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define UDS_WRAP 0x0001
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define UDS_SETBUDDYINT 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define UDS_ALIGNRIGHT 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define UDS_ALIGNLEFT 0x0008
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define UDS_AUTOBUDDY 0x0010
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define UDS_ARROWKEYS 0x0020
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define UDS_HORZ 0x0040
3f7e60a636ef887af87fadf9ab6289c672532dd9zhefeng xu - Sun Microsystems - Beijing China#define UDS_NOTHOUSANDS 0x0080
cf8dcc9bbabedca41ecfee13dec8172104e99968zhefeng xu - Sun Microsystems - Beijing China#define UDS_HOTTRACK 0x0100
c869993e79c1eafbec61a56bf6cea848fe754c71xy
ac7f5757903d7806e03e59f71c10eec36e0deadechenlu chen - Sun Microsystems - Beijing China/* Progressbar Control */
ac7f5757903d7806e03e59f71c10eec36e0deadechenlu chen - Sun Microsystems - Beijing China#define PBS_SMOOTH 0x01
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define PBS_VERTICAL 0x04
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Common Control Styles */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define CCS_TOP 0x00000001L
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define CCS_NOMOVE 0x00000002L
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define CCS_BOTTOM 0x00000003L
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define CCS_NORESIZE 0x00000004L
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define CCS_NOPARENTALIGN 0x00000008L
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#define CCS_ADJUSTABLE 0x00000020L
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#define CCS_NODIVIDER 0x00000040L
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#define CCS_VERT 0x00000080L
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define CCS_LEFT (CCS_VERT | CCS_TOP)
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic#define CCS_RIGHT (CCS_VERT | CCS_BOTTOM)
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo#define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Listview Control */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define LVS_ALIGNTOP 0x0000
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define LVS_ICON 0x0000
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define LVS_REPORT 0x0001
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define LVS_SMALLICON 0x0002
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define LVS_LIST 0x0003
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define LVS_TYPEMASK 0x0003
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define LVS_SINGLESEL 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_SHOWSELALWAYS 0x0008
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_SORTASCENDING 0x0010
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_SORTDESCENDING 0x0020
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_SHAREIMAGELISTS 0x0040
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_NOLABELWRAP 0x0080
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#define LVS_AUTOARRANGE 0x0100
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_EDITLABELS 0x0200
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_OWNERDRAWFIXED 0x0400
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_ALIGNLEFT 0x0800
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_ALIGNMASK 0x0c00
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_OWNERDATA 0x1000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_NOSCROLL 0x2000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_NOCOLUMNHEADER 0x4000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_NOSORTHEADER 0x8000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LVS_TYPESTYLEMASK 0xfc00
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Treeview Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_HASBUTTONS 0x0001
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_HASLINES 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_LINESATROOT 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_EDITLABELS 0x0008
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_DISABLEDRAGDROP 0x0010
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#define TVS_SHOWSELALWAYS 0x0020
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_RTLREADING 0x0040
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_NOTOOLTIPS 0x0080
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_CHECKBOXES 0x0100
3f7e60a636ef887af87fadf9ab6289c672532dd9zhefeng xu - Sun Microsystems - Beijing China#define TVS_TRACKSELECT 0x0200
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_SINGLEEXPAND 0x0400
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_INFOTIP 0x0800
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_FULLROWSELECT 0x1000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_NOSCROLL 0x2000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TVS_NONEVENHEIGHT 0x4000
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic#define TVS_NOHSCROLL 0x8000
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Tab Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_RIGHTJUSTIFY 0x0000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_SINGLELINE 0x0000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_TABS 0x0000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_SCROLLOPPOSITE 0x0001
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#define TCS_BOTTOM 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_RIGHT 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_MULTISELECT 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_FLATBUTTONS 0x0008
3f7e60a636ef887af87fadf9ab6289c672532dd9zhefeng xu - Sun Microsystems - Beijing China#define TCS_FORCEICONLEFT 0x0010
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_FORCELABELLEFT 0x0020
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_HOTTRACK 0x0040
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo#define TCS_VERTICAL 0x0080
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_BUTTONS 0x0100
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_MULTILINE 0x0200
69b2d733deffed6bf9baf89d901afd9c81b484edGuoqing Zhu#define TCS_FIXEDWIDTH 0x0400
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic#define TCS_RAGGEDRIGHT 0x0800
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_FOCUSONBUTTONDOWN 0x1000
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo#define TCS_OWNERDRAWFIXED 0x2000
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo#define TCS_TOOLTIPS 0x4000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define TCS_FOCUSNEVER 0x8000
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Animate Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ACS_CENTER 0x0001
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ACS_TRANSPARENT 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ACS_AUTOPLAY 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ACS_TIMER 0x0008
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Month Calendar Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define MCS_DAYSTATE 0x0001
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define MCS_MULTISELECT 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define MCS_WEEKNUMBERS 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define MCS_NOTODAYCIRCLE 0x0008
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define MCS_NOTODAY 0x0010
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Datetime Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define DTS_SHORTDATEFORMAT 0x0000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define DTS_UPDOWN 0x0001
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define DTS_SHOWNONE 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define DTS_LONGDATEFORMAT 0x0004
b8d0a37778010a5166d34bb0d192cf6b1b2f7becchenlu chen - Sun Microsystems - Beijing China#define DTS_TIMEFORMAT 0x0009
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define DTS_SHORTDATECENTURYFORMAT 0x000C
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define DTS_APPCANPARSE 0x0010
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define DTS_RIGHTALIGN 0x0020
8bb4b220fdb894543e41a5f9037898cf3c3f312bgl
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Pager Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define PGS_VERT 0x00000000
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define PGS_HORZ 0x00000001
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define PGS_AUTOSCROLL 0x00000002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define PGS_DRAGNDROP 0x00000004
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Native Font Control */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define NFS_EDIT 0x0001
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define NFS_STATIC 0x0002
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define NFS_LISTCOMBO 0x0004
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define NFS_BUTTON 0x0008
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define NFS_ALL 0x0010
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#define NFS_USEFONTASSOC 0x0020
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng