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