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
........
(http://i026.radikal.ru/1104/32/23ec76034a57.png)
WC_IPADDRESS = ??? (http://smiles.kolobok.us/standart/dntknw.gif)
(http://i060.radikal.ru/1104/75/d59bd35a3df4.png)
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 );
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://smiles.kolobok.us/standart/scratch_one-s_head.gif)
http://forum.sources.ru/index.php?showtopic=116980&hl= - example
(http://smiles.kolobok.us/standart/dance.gif)
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
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