The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: bomz on April 29, 2011, 05:39:02 AM

Title: WC_IPADDRESS = ???
Post by: bomz on April 29, 2011, 05:39:02 AM
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 );

Title: Re: WC_IPADDRESS = ???
Post by: bomz on April 29, 2011, 07:21:57 AM
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
Title: Re: WC_IPADDRESS = ???
Post by: hutch-- on April 29, 2011, 08:35:02 AM
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