News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

WC_IPADDRESS = ???

Started by bomz, April 29, 2011, 05:39:02 AM

Previous topic - Next topic

bomz

Quote
........
include \masm32\include\Comctl32.inc
includelib \masm32\lib\Comctl32.lib
........
hWndIPAddress      dd ?
IPadress      INITCOMMONCONTROLSEX <>
........
.IF uMsg == WM_CREATE
mov IPadress.dwSize, sizeof IPadress
mov IPadress.dwICC, ICC_INTERNET_CLASSES
invoke InitCommonControlsEx, addr IPadress
invoke CreateWindowEx,0,WC_IPADDRESS, NULL, WS_CHILD OR WS_VISIBLE OR WS_TABSTOP,1,1,0,25,hWnd,NULL,hInstance,0
mov hWndIPAddress, eax
invoke SendMessage,hWndIPAddress,IPM_CLEARADDRESS,0,0
........



WC_IPADDRESS = ???   



http://www.functionx.com/cppbuilder/controls/ipaddress.htm
Quote
   hWndIPAddress = CreateWindowEx( 0,
               WC_IPADDRESS,
               NULL,
               WS_CHILD | WS_VISIBLE | WS_TABSTOP,
               90, 14, 120, 20,
               Handle,
               NULL,
               HInstance,
               NULL );


bomz

http://www.asmcommunity.net/board/index.php?topic=13868.0
Quote
WC_HEADER equ "SysHeader32"
TOOLBARCLASSNAME equ "ToolbarWindow32"
REBARCLASSNAME equ "ReBarWindow32"
TOOLTIPS_CLASS equ "tooltips_class32"
STATUSCLASSNAME equ "msctls_statusbar32"
TRACKBAR_CLASS equ "msctls_trackbar32"
UPDOWN_CLASS equ "msctls_updown32"
PROGRESS_CLASS equ "msctls_progress32"
HOTKEY_CLASS equ "msctls_hotkey32"
WC_LISTVIEW equ "SysListView32"
WC_TREEVIEW equ "SysTreeView32"
WC_COMBOBOXEX equ "ComboBoxEx32"
WC_TABCONTROL equ "SysTabControl32"
ANIMATE_CLASS equ "SysAnimate32"
MONTHCAL_CLASS equ "SysMonthCal32"
DATETIMEPICK_CLASS equ "SysDateTimePick32"
WC_IPADDRESS equ "SysIPAddress32"
WC_PAGESCROLLER equ "SysPager"




http://forum.sources.ru/index.php?showtopic=116980&hl=   - example


Quote
hWndIPAddress      HWND ?
;IPadress      INITCOMMONCONTROLSEX <>
......................
IPClName      db 'SysIpAddress32', 0
......................
;mov IPadress.dwSize, sizeof IPadress
;mov IPadress.dwICC, ICC_INTERNET_CLASSES
;invoke InitCommonControlsEx, offset IPadress
invoke CreateWindowEx, 0, offset IPClName, NULL, WS_CHILD OR WS_VISIBLE,150,5,150,22,hWnd,0,hInstance,0
mov hWndIPAddress, eax

hutch--

Bomz,

This is why you keep the most up to date Microsoft headers available.

commctrl.h


#define WC_IPADDRESSW           L"SysIPAddress32"
#define WC_IPADDRESSA           "SysIPAddress32"

#ifdef UNICODE
#define WC_IPADDRESS          WC_IPADDRESSW
#else
#define WC_IPADDRESS          WC_IPADDRESSA
#endif
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php