In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about how to use WINDOWS-specific constant identifiers vb and vbs. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
Message constant identifiers specific to WINDOWS
Public Const WM_NULL = & H0&Public Const WM_CREATE = & H1 & 'the application creates a window Public Const WM_DESTROY = & H2 &' A window is destroyed Public Const WM_MOVE = & H3 & 'move a window Public Const WM_SIZE = & H5 &' change the size of a window Public Const WM_ACTIVATE = & H6 &'A window is activated or deactivated Public Const WM_SETFOCUS = & H7 & 'Public Const WM_KILLFOCUS = & H8 &' lose focus Public Const WM_ENABLE = & HA& 'change Enable state Public Const WM_SETREDRAW = & HB&' set whether the window can redraw Public Const WM_SETTEXT = & HC& 'application sends this message to set the text of a window Public Const WM_GETTEXT = & HD&' application sends this message to copy the text of the corresponding window to the buffer Section Public Const WM_GETTEXTLENGTH = & HE& 'gets the length of text associated with a window (without null characters) Public Const WM_PAINT = & HF&' requires a window to redraw itself Public Const WM_CLOSE = & H10 & 'send a signal Public Const WM_QUERYENDSESSION = & H11 &' when a window or application is about to close Public Const WM_QUERYENDSESSION = & H11 & 'when the user selects the bunching dialog box or the program calls the ExitWindows function Public Const WM_QUIT = & H12 &'is used to end the program running or when the program calls the postquitmessage function Public Const WM_QUERYOPEN = & H13 & 'when the user window returns to its previous size position Send this message to an icon Public Const WM_ERASEBKGND = & H14 & 'when the window background must be erased (for example, when the window changes size) Public Const WM_SYSCOLORCHANGE = & H15 &' when the system color changes, send this message to all top-level windows Public Const WM_ENDSESSION = & H16 & 'when the system process sends out the Public Const WM_QUERYENDSESSION message This message is sent to the application informing it whether to end the conversation Public Const WM_SYSTEMERROR = & H17&Public Const WM_SHOWWINDOW = & H18 & 'when the hidden or displayed window is sent this message to the window Public Const WM_ACTIVATEAPP = & H1C &' which window is active Which is the inactive Public Const WM_FONTCHANGE = & H1D & 'send this message to all top-level windows when the system's font repository changes Public Const WM_TIMECHANGE = & H1E &' send this message to all top-level windows Public Const WM_CANCELMODE = & H1F & 'send this message to cancel some ongoing modeling (operation) Public Const WM_SETCURSOR = & H20 &' if the mouse When the mark causes the cursor to move in a window and the mouse input is not captured Just send a message to a window
Public Const WM_MOUSEACTIVATE = & H21 & 'when the cursor is in an inactive window and the user is pressing a mouse key to send this message to the current window Public Const WM_CHILDACTIVATE = & H22 &' send this message to the MDI child window when the user clicks on the title bar of this window, or when the window is activated, moved, resized Public Const WM_QUEUESYNC = & H23 & 'this message is sent by a computer-based training program Use WH_JOURNALPALYBACK 's hook program to separate the user input message Public Const WM_GETMINMAXINFO = & H24 & 'this message is sent to the window when it is about to change its size or location Public Const WM_PAINTICON = & H26 &' to the minimized window when its icon is about to be redrawn Public Const WM_ICONERASEBKGND = & H27 & 'this message is sent to a minimized window Only if its background must be redrawn before drawing the icon Public Const WM_NEXTDLGCTL = & H28 & 'send this message to a dialog program to change the focus position Public Const WM_SPOOLERSTATUS = & H2A &' send this message whenever the print management queue increases or decreases a job Public Const WM_DRAWITEM = & H2B & 'when button,combobox,listbox Send this message to the owner of these empty parts Public Const WM_MEASUREITEM = & H2C & 'when button, combo box, list box, list view control, or menu item is created, to the owner of the control Public Const WM_DELETEITEM = & H2D &' when the list box or combo box is destroyed or when certain items are deleted through LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING Or CB_RESETCONTENT message Public Const WM_VKEYTOITEM = & H2E & 'this message has a LBS_WANTKEYBOARDINPUT style sent to its owner in response to the Public Const WM_KEYDOWN message Public Const WM_CHARTOITEM = & H2F &' this message is sent to his owners by a LBS_WANTKEYBOARDINPUT-style list box in response to the Public Const WM_CHAR message Public Const WM_SETFONT = & H30 & 'when the program sends this message to the control to get the The color Public Const WM_GETFONT = & H31 & 'the application sends this message to get the font of the text drawn by the current control Public Const WM_SETHOTKEY = & H32 &' the application sends this message to have a window associated with a hotkey Public Const WM_GETHOTKEY = & H33 & 'the application sends this message to determine whether the hotkey is associated with a window Public Const WM_QUERYDRAGICON = & H37 &' this message is sent to the minimized window When this window is about to be dragged and dropped and there is no icon defined in its class, the application can return an icon or a handle to the cursor The system displays the icon or cursor Public Const WM_COMPAREITEM = & H39 & 'when the user drags the icon and sends this message to determine the relative position of the newly added item in combobox or listbox Public Const WM_GETOBJECT = & H3D&Public Const WM_COMPACTING = & H41 &' shows that there is little memory Public Const WM_WINDOWPOSCHANGING = & H46 & 'when the size and position of sending this message to that window is about to be changed To call the setwindowpos function or other window management function Public Const WM_WINDOWPOSCHANGED = & H47 &'to send this message to that window when the size and location of the window have been changed To call the setwindowpos function or other window management function Public Const WM_POWER = & H48 & 'send this message when the system is about to enter a paused state (for 16-bit windows) Public Const WM_COPYDATA = & H4A &' send this message when one application passes data to another application Public Const WM_CANCELJOURNAL = & H4B & 'when a user cancels the program log activation state Submit this message to the program Public Const WM_NOTIFY = & H4E & 'when an event of a control has occurred or the control needs to get some information, send this message to its parent window Public Const WM_INPUTLANGCHANGEREQUEST = & H50 &' when the user chooses an input language Or change the hotkey of the input language Public Const WM_INPUTLANGCHANGE = & H51 & 'send this message to the affected top-level window Public Const WM_TCARD = & H52 &' when the program has initialized the windows help routine, send this message to the application Public Const WM_HELP = & H53 & 'this message shows that the user has pressed F1, and if a menu is active, send this message to the associated menu of this window Otherwise, it will be sent to the window with focus. If there is no focus at present, send this message to the currently active window Public Const WM_USERCHANGED = & H54 & 'when the user has logged in or exited, send this message to all windows. When the user logs in or exits, the system updates the user's specific settings, and the system sends this message immediately when the user updates the settings. Public Const WM_NOTIFYFORMAT = & H55 & 'common controls, custom controls and their parent windows use this message to determine whether the control uses ANSI or UNICODE structures, in WM_NOTIFY messages Use this control to enable a control to communicate with its parent control Public Const WM_CONTEXTMENU = & H7B & 'when the user right-clicks in a window and sends this message to the window Public Const WM_STYLECHANGING = & H7C &' when calling the SETWINDOWLONG function is about to change the style of one or more windows, send this message to that window Public Const WM_STYLECHANGED = & H7D & 'when calling SETWINDOWLONG Function the style of one or more windows, send this message to that window Public Const WM_DISPLAYCHANGE = & H7E & 'when the resolution of the display changes, send this message to all windows Public Const WM_GETICON = & H7F &' this message is sent to a window to return a handle to a large or small icon associated with a window Public Const WM_SETICON = & H80 & 'the program sends this message to associate a new large or small icon with a window; Public Const WM_NCCREATE = & H81 &' when a window is first created, this message is sent before the Public Const WM_CREATE message is sent Public Const WM_NCDESTROY = & H82 & 'this message informs a window that the non-client area is destroying Public Const WM_NCCALCSIZE = & H83 &' send this message when the customer area of a window must be accounted for Public Const WM_NCHITTEST = & H84 & 'move the mouse, Public Const WM_NCPAINT = & H85 &' the program sends this message to a window when its frame must be drawn Public Const WM_NCACTIVATE = & H86 & 'this message is sent to a window only if its non-client area needs to be changed to show whether it is active or inactive Public Const WM_GETDLGCODE = & H87 & 'sends this message to a control associated with the dialog program, and widdows controls the azimuth key and the TAB key to make the input enter the control by responding to the Public Const WM_GETDLGCODE message The application can treat it as a special input control and can handle it Public Const WM_NCMOUSEMOVE = & HA0& 'when the cursor moves in the non-client area of a window to send this message to the non-client area of the window is: the title bar of the form and the border of the window Public Const WM_NCLBUTTONDOWN = & HA1&' submit this message Public when the cursor presses the left mouse button in the non-client area of a window at the same time Const WM_NCLBUTTONUP = & HA2& 'when the user releases the left mouse button and cursor a window to send this message in the non-client area ten Public Const WM_NCLBUTTONDBLCLK = & HA3& 'send this message when the user double-clicks the left mouse button while the cursor is in the non-client area of the window Public Const WM_NCRBUTTONDOWN = & HA4&' when the user presses the right mouse button and the cursor is in the non-client area of the window send this message Public Const WM_NCRBUTTONUP = & HA5& 'when the user releases the right mouse button and the cursor is in the non-client area of the window _ NCRBUTTONDBLCLK = & HA6& 'send this message when the user double-clicks the right mouse button and cursor a window in the non-client area Public Const WM_NCMBUTTONDOWN = & HA7&' when the user presses the middle mouse button and the cursor is in the non-client area of the window send this message Public Const WM_NCMBUTTONUP = & HA8& 'when the user releases the middle mouse button and the cursor is in the non-client area of the window Public Const WM_NCMBUTTONDBLCLK = & HA9& 'sends this message when the user double-clicks the middle mouse button while the cursor is in the non-client area of the window
Public Const WM_KEYFIRST = & H100&Public Const WM_KEYDOWN = & H100 & 'press a key Public Const WM_KEYUP = & H101 &' release a key Public Const WM_CHAR = & H102 & 'press a key and a WM_KEYDOWN,WM_KEYUP message has been sent
Public Const WM_DEADCHAR = & H103 & 'send this message to the window with focus when translating the WM_KEYUP message with the Translatemessage function Public Const WM_SYSKEYDOWN = & H104 &' submit the message to the window with focus when the user holds down the alt key while pressing other keys Public Const WM_SYSKEYUP = & H105 & 'when the user releases a key while the ALT key is still pressed, submit this message to the window with focus Public Const WM_SYSCHAR = & H106 &' when the WM_SYSKEYDOWN message is translated by the TRANSLATEMESSAGE function, the message is submitted to the window with focus Public Const WM_SYSDEADCHAR = & H107 & 'when the WM_SYSKEYDOWN message is translated by the TRANSLATEMESSAGE function, the message is sent to the window with focus Public Const WM_KEYLAST = & H108&Public Const WM_INITDIALOG = & H110 & 'send this message to a dialog program before it is displayed This message is usually used to initialize the control and perform other tasks Public Const WM_COMMAND = & H111 & 'when the user selects a menu command item or when a control sends a message to its parent window A shortcut key is translated Public Const WM_SYSCOMMAND = & H112 & 'when the user selects a command from the window menu or when the user chooses to maximize or minimize, that window will receive this message Public Const WM_TIMER = & H113 &' timer event Public Const WM_HSCROLL = & H114 & 'send this message to a window when a standard horizontal scroll bar generates a scrolling event Also send this message to the control that owns it Public Const WM_VSCROLL = & H115 & 'when a window standard vertical scroll bar generates a scrolling event, send this message to the control that owns it Public Const WM_INITMENU = & H116 &' when a menu is about to be activated, it occurs in an item in the user's menu bar or presses a menu key It allows the program to change the menu before display Public Const WM_INITMENUPOPUP = & H117 & 'send this message when a drop-down menu or submenu is about to be activated, it allows the program to change the menu before it is displayed Instead of changing all Public Const WM_MENUSELECT = & H11F & 'when the user selects a menu item, send this message to the menu owner (usually the window) Public Const WM_MENUCHAR = & H120 &' when the menu has been activated and the user presses a key (different from the accelerator key), send this message to the menu owner Public Const WM_ENTERIDLE = & H121 & 'send this message to its owner when a modal dialog box or menu goes into an empty state A modal dialog box or menu goes empty when there is no message after processing one or more previous messages. It waits in the queue for Public Const WM_MENURBUTTONUP = & H122&Public Const WM_MENUDRAG = & H123&Public Const WM_MENUGETOBJECT = & H124&Public Const WM_UNINITMENUPOPUP = & H125&Public Const WM_MENUCOMMAND = & H126&Public Const WM_CHANGEUISTATE = & H127&Public Const WM_UPDATEUISTATE = & H128&Public Const WM_QUERYUISTATE = & H129&Public Const WM_ CTLCOLORMSGBOX = & H132 & 'send this message to the owner window of the message box before windows draws the message box By responding to this message, the owner window can set the text and background color of the message box by using the handle of the given display device Public Const WM_CTLCOLOREDIT = & H133 & 'send this message to the parent window of an editing control when it is about to be drawn By responding to this message, the owner window can set the text and background color of the edit box by using the handle of the given display device Public Const WM_CTLCOLORLISTBOX = & H134 & 'send this message to the parent window of a list box control before it is about to be drawn By responding to this message, the owner window can set the text and background color of the list box by using the handle of the given display device Public Const WM_CTLCOLORBTN = & H135 & 'send this message to the parent window of a button control when it is about to be drawn By responding to this message, the owner window can set the text and background color of the button by using the handle of the given display device Public Const WM_CTLCOLORDLG = & H136 & 'when a dialog control is about to be drawn to send this message to its parent window By responding to this message, the owner window can set the text background color of the dialog box by using the handle of the given display device Public Const WM_CTLCOLORSCROLLBAR = & H137 & 'send this message to its parent window when a scroll bar control is about to be drawn By responding to this message, the owner window can set the background color of the scroll bar by using the handle of the given display device Public Const WM_CTLCOLORSTATIC = & H138 & 'send this message to its parent window when a static control is about to be drawn; by responding to this message, the owner window can set the text and background color of the static control by using the handle of the given display device
Public Const WM_MOUSEFIRST = & H200&Public Const WM_MOUSEMOVE = & H200 & 'Mobile Mouse Public Const WM_LBUTTONDOWN = & H201 &' Press the left mouse button Public Const WM_LBUTTONUP = & H202 & 'release the left mouse button Public Const WM_LBUTTONDBLCLK = & H203 &' double-click the left mouse button Public Const WM_RBUTTONDOWN = & H204 & 'press the right mouse button Public Const WM_RBUTTONUP = & H205 &' release the right mouse button Public Const WM_RBUTTONDBLCLK = & H206 &' Double-click the right mouse button Public Const WM_MBUTTONDOWN = & H207 & 'Press the middle mouse button Public Const WM_MBUTTONUP = & H208 &' release the middle mouse button Public Const WM_MBUTTONDBLCLK = & H209 & 'double-click the middle mouse button Public Const WM_MOUSEWHEEL = & H20A &' send this message to the currently focused control Public Const WM_MOUSELAST = & H20A & when the mouse wheel rotates
Public Const WM_PARENTNOTIFY = & H210 & 'when the MDI child window is created or destroyed Or the user clicks the mouse button and the cursor is over the child window to send this message to its parent window Public Const WM_ENTERMENULOOP = & H211 & 'send this message to notify the application's main window that has entered the menu loop mode Public Const WM_EXITMENULOOP = & H212 &' send this message to notify the application's main window that has exited the menu loop mode Public Const WM_NEXTMENU = & H213&Public Const WM_SIZING = 532 & 'send this message to the window when the user is resizing the window Through this message application, you can monitor the size and location of the window or modify them Public Const WM_CAPTURECHANGED = 533 & 'send this message to the window when it loses the captured mouse Public Const WM_MOVING = 534 &' send this message when the user is moving the window Through this message application, you can monitor the size and location of the window or modify them Public Const WM_POWERBROADCAST = 536 & 'this message is sent to the application to notify it of the power management event Public Const WM_DEVICECHANGE = 537 &' send this message to the application or device driver when the hardware configuration of the device changes
Public Const WM_IME_STARTCOMPOSITION = & H10D&Public Const WM_IME_ENDCOMPOSITION = & H10E&Public Const WM_IME_COMPOSITION = & H10F&Public Const WM_IME_KEYLAST = & H10F&Public Const WM_IME_SETCONTEXT = & H281&Public Const WM_IME_NOTIFY = & H282&Public Const WM_IME_CONTROL = & H283&Public Const WM_IME_COMPOSITIONFULL = & H284&Public Const WM_IME_SELECT = & H285&Public Const WM_IME_CHAR = & H286&Public Const WM_IME_REQUEST = & H288 & Public Const WM_IME_KEYDOWN = & H290&Public Const WM_IME_KEYUP = & H291 &
Public Const WM_MDICREATE = & H220 & 'the application sends this message to the multi-document customer window to create a MDI child window Public Const WM_MDIDESTROY = & H221 &' the application sends this message to the multi-document customer window to close a MDI child window Public Const WM_MDIACTIVATE = & H222 & 'the application sends this message to the multi-document customer window to inform the customer window to activate another MDI child window When the customer window receives this message It sends a Public Const WM_MDIACTIVE message to the MDI child window (inactive) to activate it Public Const WM_MDIRESTORE = & H223 & 'the program sends this message to the MDI customer window to restore the child window from the maximum and minimum to the original size Public Const WM_MDINEXT = & H224 &' the program sends this message to the MDI client window activating the next or previous window Public Const WM_MDIMAXIMIZE = & H225 & 'the program sends this message to the MDI client window MDI client window to maximize one MDI child window Public Const WM_MDITILE = & H226 & 'the program sends this message to the MDI customer window to tile all MDI child windows Public Const WM_MDICASCADE = & H227 &' the program sends this message to the MDI customer window cascading all MDI child windows Public Const WM_MDIICONARRANGE = & H228 & 'the program sends this message to the MDI client window Rearrange all minimized MDI child windows Public Const WM_MDIGETACTIVE = & H229 & 'the program sends this message to the MDI client window to find the handle to the active child window Public Const WM_MDISETMENU = & H230 &' the program sends this message to the MDI customer window to replace the menu of the child window with the MDI menu Public Const WM_ENTERSIZEMOVE = & H231&Public Const WM_EXITSIZEMOVE = & H232&Public Const WM_DROPFILES = & H233&Public Const WM_MDIREFRESHMENU = & H234&Public Const WM_MOUSEHOVER = & H2A1&Public Const WM_MOUSELEAVE = & H2A3&Public Const WM_CUT = & H300 & 'the program sends this message to an edit box or combobox to delete the currently selected text Public Const WM_COPY = & H301 &' program sends this message to an edit box or combobox to copy the currently selected text to the clipboard Public Const WM_PASTE = & H302 & 'the program sends this message to editcontrol or combobox Get the data from the clipboard Public Const WM_CLEAR = & H303 & 'the program sends this message to editcontrol or combobox to clear the currently selected content Public Const WM_UNDO = & H304 &' the program sends this message to editcontrol or combobox to undo the last operation Public Const WM_RENDERFORMAT = & H305&Public Const WM_RENDERALLFORMATS = & H306&Public Const WM_DESTROYCLIPBOARD = & H307 & 'send this message to the owner of the clipboard when the ENPTYCLIPBOARD function is called Public Const WM_DRAWCLIPBOARD = & H308 & 'send this message to the first window of the clipboard observation chain when the contents of the clipboard change It allows the clipboard viewing window to display the new contents of the clipboard; Public Const WM_PAINTCLIPBOARD = & H309 & 'when the clipboard contains data in CF_OWNERDIPLAY format and the clipboard viewing window's client area needs to be redrawn Public Const WM_VSCROLLCLIPBOARD = & H30A&Public Const WM_SIZECLIPBOARD = & H30B & 'when the clipboard contains data in CF_OWNERDIPLAY format and the size of the clipboard viewing window's customer area has changed, this message is sent to the clipboard owner through the clipboard viewing window Public Const WM_ASKCBFORMATNAME = & H30C & 'send this message to the clipboard owner through the clipboard viewing window to request the name of a clipboard in CF_OWNERDISPLAY format Public Const WM_CHANGECBCHAIN = & H30D &' send this message to the first window of the clipboard viewing chain when a window is removed from the clipboard viewing chain Public Const WM_HSCROLLCLIPBOARD = & H30E & 'this message is sent to the owner of the clipboard through a clipboard viewing window; it occurs when the clipboard contains data in CFOWNERDISPALY format and there is an event on the horizontal scroll bar of the clipboard viewing window; the owner should scroll the clipboard image and update the value of the scrollbar Public Const WM_QUERYNEWPALETTE = & H30F & 'this message is sent to the window that will receive focus This message gives the window the opportunity to implement its logical palette Public Const WM_PALETTEISCHANGING = & H310 & 'when an application is about to implement its logical palette, this message notifies all applications Public Const WM_PALETTECHANGED = & H311 &' this message sends this message to all top-level and overlapping windows after a window with focus implements its logical palette. To change the system color palette Public Const WM_HOTKEY = & H312 & 'submit this message when the user presses the hotkey registered by the REGISTERHOTKEY function Public Const WM_PRINT = 791 &' the application sends this message only if WINDOWS or another application makes a request to draw part of an application Public Const WM_PRINTCLIENT = 792&Public Const WM_HANDHELDFIRST = 856&Public Const WM_HANDHELDLAST = 863&Public Const WM_PENWINFIRST = & H380&Public Const WM_PENWINLAST = & H38F&Public Const WM_COALESCE_FIRST = & H390&Public Const WM_COALESCE_LAST = & H39F &
Public Const WM_DDE_FIRST = & H3E0&Public Const WM_DDE_INITIATE = WM_DDE_FIRST + 0 &'A DDE client program submits this message to start a session with the server program in response to that specified program and topic name; Public Const WM_DDE_TERMINATE = WM_DDE_FIRST + 1 &'an DDE application (whether client or server) submits this message to terminate a session Public Const WM_DDE_ADVISE = WM_DDE_FIRST + 2 &'A DDE client program submits this message to a DDE service program to request the server to update it whenever the data item changes Public Const WM_DDE_UNADVISE = WM_DDE_FIRST + 3 &'A DDE client program uses this message to notify a DDE service program not to update the specified item or an item in a special clipboard format Public Const WM_DDE_ ACK = WM_DDE_FIRST + 4 & 'this message informs a DDE (dynamic data Exchange) program that it has received and is processing WM_DDE_POKE WM_DDE_EXECUTE,WM_DDE_DATA,WM_DDE_ADVISE,WM_DDE_UNADVISE Or WM_DDE_INITIAT message Public Const WM_DDE_DATA = WM_DDE_FIRST + 5 &'A DDE service program submits this message to a DDE client program to pass a data item to the customer or notify the customer of an available data item Public Const WM_DDE_REQUEST = WM_DDE_FIRST + 6 &'A DDE client program submits this message to a DDE service program to request the value of a data item Public Const WM_DDE_POKE = WM_DDE_FIRST + 7 &'A DDE client program submits this message to a DDE service program, and the customer uses this message to request the server to receive an unauthorized data item; the server prompts whether it receives the data item by replying to the Public Const WM_DDE_ACK message Public Const WM_DDE_EXECUTE = WM_DDE_FIRST + 8 &'A DDE client submits this message to a DDE service program to send a string to the server to be processed like a serial command, and the server responds by submitting a Public Const WM_DDE_ACK message; Public Const WM_DDE_LAST = WM_DDE_FIRST + 8 &
The above is how to use WINDOWS's unique message constant identifiers vb and vbs. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.