Do you know hWnd? It's the handle of a window. In Windows system, the handle identifies every window and it's unique for every window. Some ActiveX need the hWnd of your form, button or picture box to operate the window. But some containers don't provide the property to get the handle of the window. Now with the FREE hWnd ActiveX, you can do that very easily. hWnd ActiveX is a 32bit OLE Control Module to help you to get the handle of the windows. You can get the parent, child, previous, next window's handle and you can search the window's handle by the caption text.
How to use hWnd ActiveX:
hWnd ActiveX has five methods to help you to get the window's handle.
GetParent(hWindow) : This method will return the parent window's handle of the hWindow.
GetChild(hWindow) : This method will return the first child window's handle of the hWindow.
GetNext(hWindow) : This method will return the sibling window below the hWindow.
GetPrevious(hWindow) : This method will return the sibling window above the hWindow.
FindWindow(hParentWindow, hChildAfter, Caption) : This method will search the window which caption is the same as Caption. The searching starts from the hParentWindow as the root window and begins with the next child window after hChildAfter. You can pass the returned value to hChildAfter in the next call to FindWindow to find all the windows whose captions are Caption.
hWindow, hParentWindow or hChildAfter are known window's handle which you can get from previous calls to hWnd ActiveX or the hWnd property of the hWnd ActiveX. If the method returns 0(zero), that means a error or no window.
hWnd property : The window's handle of hWnd ActiveX. You can pass this value to the methods of hWnd ActiveX.
hWnd ActiveX has its own window. If some containers, you still can get the hWnd from hWnd ActiveX if the ActiveX is invisible. But some containers not. In these containers, you need to set the hWnd ActiveX visible. If you don't want the users to see the ActiveX, you can put the ActiveX outside of the container window (for example, set Left and Top to -100, -100).
Download hWnd ActiveX:
hWnd ActiveX 1.0 (22 K).
Following ActiveX need Window's handle to use, you can use hWnd ActiveX with these ActiveX in the containers that don't provide Window's handle in property:
Window Show ActiveX
Animation Form Icon ActiveX
Animation Cursor ActiveX
Custom Form Title ActiveX
Custom Form Border ActiveX
Custom Form Shape ActiveX
Your comments and any suggestion are welcomed.
You can send me E-mail or sign my guest book.
This page is for information realted to anigif, animation, gif, ocx, activex, anigif.ocx, 2.0, windows, vb, vc, vfc, visual basic, visual c++, vs.net, visual studio, c#, .NET, network, internet, video, movie, avi, rm, rmvb, real player, crack, serial#, registration key, free, msdn, 1991, 1992, 1993, 1994, 1995, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, january, february, google, yahoo, ebay, windows 2000, windows 2003, windows xp, absolute URL, ActiveX control, ADISAPI, Advanced Data Internet Server Application Programming Interface, aggregate function, alias, apartment threading, asynchronous operation, binding entry, bitmask, bookmark, business object, business rule, calculated expression, chapter, chapter-alias, character set, child, child-alias, class identifier, CLSID, client tier, COM, COM component, comparison operator, component, Component Object Model, compound file, constant, cursor, data binding, data definition language, data manipulation language, data provider, data shaping, data source name, data source tier, DCOM, DDL, default stream, disconnected recordset, distributed application, Distributed Component Object Model, DLL, DML, document source provider, DSN, dynamic-link library, dynamic property, enumeration, event, event handler, handler, hierarchical recordset, hierarchy, Internet Server Application Programming Interface, ISAPI, key, marshaling, middle tier, MIME, Multi-purpose Internet Mail Extension, node, object variable, ODBC, OLE DB, Open Database Connectivity, optimistic locking, ordinal value, parameterized command, parent, parent-alias, parent-child relationship, persist, pessimistic locking, pooling, ProgID, programmatic identifier, proxy, relative URL, remote data source, resource record, root, rowset, schema, scope, service provider, shaped Recordset, sibling, stored procedure, stub, sub-node, synchronous operation, tree, Uniform Resource Locator, URL, Web server, ActiveX OCX Shareware Freeware Animation GIF OLE Custom Border Title System Info Registry OpenGL Shape Splitter Window Scrollable Container Visual Basic C++ PowerBuilder Delphi Animation Icon Tray Button CheckBox OptionButton,ActiveX,OCX,Shareware,Freeware,Animation GIF,Animation GIF ActiveX,OLE,Custom,Border,Title,System Info,Registry,OpenGL,Shape,Splitter Window,Scrollable Container,Visual Basic,C++,PowerBuilder,Delphi,Animation Icon,Tray,Button,CheckBox,OptionButton