Skip to Content
Subclassing and Hooking with Visual Basic
book

Subclassing and Hooking with Visual Basic

by Stephen Teilhet
June 2001
Intermediate to advanced
706 pages
24h 10m
English
O'Reilly Media, Inc.
Content preview from Subclassing and Hooking with Visual Basic

Name

CreateWindowEx

Synopsis

Creates a window:

Public Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" _
		(ByVal dwExStyle As Long, ByVal lpClassName As String, _
		ByVal lpWindowName As String, ByVal dwStyle As Long, _
		ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, _
		ByVal nHeight As Long, ByVal hWndParent As Long, _
		ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As Long
dwExStyle

One or more extended styles of the window ORed together

WS_EX_APPWINDOW

A top-level window is placed on the taskbar when the window is visible.

WS_EX_CLIENTEDGE

Specifies a window with a border and a sunken edge.

WS_EX_DLGMODALFRAME

Specifies a window with a double border.

WS_EX_NOACTIVATE

Used in Windows 2000 to specify a window that a user cannot make the foreground window.

WS_EX_NOPARENTNOTIFY

Specifies a child window that does not send the WM_PARENTNOTIFY message to its parent window.

WS_EX_OVERLAPPEDWINDOW

Equivalent to (WS_EX_CLIENTEDGE OR WS_EX_WINDOWEDGE).

WS_EX_STATICEDGE

Specifies a window that has a three-dimensional border but does not take user input.

WS_EX_TOPMOST

Specifies a window that should always be placed on top of other windows that are set to be top-most windows.

WS_EX_WINDOWEDGE

Specifies a window with a border and a raised edge.

lpClassName

A string containing the name of the class from which this window inherits

lpWindowName

A string displayed in the title bar of the window

dwStyle

One or more window styles or control styles OR

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

COM+ Programming with Visual Basic

COM+ Programming with Visual Basic

Jose Mojica
Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt
Programming in the .NET Environment

Programming in the .NET Environment

Damien Watkins, Mark Hammond, Brad Abrams

Publisher Resources

ISBN: 0596001185Errata Page