wxappbar._appbar
index
c:\bin\lang\py23\lib\site-packages\wxappbar\_appbar.py

Low-level ctypes extension for application bar interactions
 
The mechanisms in this module should be compatible
with any Win32 GUI engine, as they merely wrap the
Win32 API.
 
http://www.thescarms.com/vbasic/appbar.asp
 
// these are put in the wparam of callback messages
#define ABN_STATECHANGE    0x0000000
#define ABN_POSCHANGED     0x0000001
#define ABN_FULLSCREENAPP  0x0000002
#define ABN_WINDOWARRANGE  0x0000003 // lParam == TRUE means hide
 
// flags for get state
#define ABS_AUTOHIDE    0x0000001
#define ABS_ALWAYSONTOP 0x0000002
 
#define ABE_LEFT        0
#define ABE_TOP         1
#define ABE_RIGHT       2
#define ABE_BOTTOM      3
 
WINSHELLAPI UINT APIENTRY SHAppBarMessage(DWORD dwMessage, PAPPBARDATA pData);
 
////
////  EndAppBar
////

 
Modules
       
sys
ctypes.wintypes

 
Classes
       
RECT(Structure)
RECT
Structure(_ctypes._CData)
APPBARDATA
ApplicationBar

 
class APPBARDATA(Structure)
    Structure for storing AppBar message information
 
typedef struct _AppBarData {
        DWORD cbSize;
        HWND hWnd;
        UINT uCallbackMessage;
        UINT uEdge;
        RECT rc;
        LPARAM lParam;
APPBARDATA, *PAPPBARDATA;
 
 
Method resolution order:
APPBARDATA
Structure
_ctypes._CData
object

Methods defined here:
__repr__(self)
__str__ = __repr__(self)

Data and other attributes defined here:
__dict__ = <dictproxy object at 0x0169F7B0>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'APPBARDATA' objects>
list of weak references to the object (if defined)
cbSize = <_ctypes.CField object at 0x015D7E60>
hWnd = <_ctypes.CField object at 0x015D7C20>
lParam = <_ctypes.CField object at 0x016041A0>
rc = <_ctypes.CField object at 0x01604360>
uCallbackMessage = <_ctypes.CField object at 0x01604260>
uEdge = <_ctypes.CField object at 0x01604280>

Methods inherited from Structure:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from Structure:
__new__ = <built-in method __new__ of _ctypes.StructType object at 0x0170A890>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class ApplicationBar(APPBARDATA)
    Convenience wrapper around APPBARDATA
 
 
Method resolution order:
ApplicationBar
APPBARDATA
Structure
_ctypes._CData
object

Methods defined here:
activate(self)
Uniform system of application activation
new(self, hWnd, message=2038, edge='t')
Register the application bar with the system
remove(self)
Remove this appbar from the system's set
setPosition(self, rect=(-1, -1, -1, -1))
Set position of appbar, reserving area of screen
 
Return the rectangle suggested by the system
updatePosition(self, rect)
Inform system of updated position

Data and other attributes defined here:
ABE_BOTTOM = 3
ABE_LEFT = 0
ABE_RIGHT = 2
ABE_TOP = 1
ABM_ACTIVATE = 6
ABM_GETAUTOHIDEBAR = 7
ABM_GETSTATE = 4
ABM_GETTASKBARPOS = 5
ABM_NEW = 0
ABM_QUERYPOS = 2
ABM_REMOVE = 1
ABM_SETAUTOHIDEBAR = 8
ABM_SETPOS = 3
ABM_WINDOWPOSCHANGED = 9
ABN_FULLSCREENAPP = 2
ABN_POSCHANGED = 1
ABN_STATECHANGE = 0
ABN_WINDOWARRANGE = 3
ABS_ALWAYSONTOP = 2
ABS_AUTOHIDE = 1
cbSize = <_ctypes.CField object at 0x01604860>
edgeMapping = {0: 0, 1: 1, 2: 2, 3: 3, 'b': 3, 'l': 0, 'r': 2, 't': 1}
hWnd = <_ctypes.CField object at 0x016046C0>
lParam = <_ctypes.CField object at 0x01608440>
position = (-1, -1)
rc = <_ctypes.CField object at 0x01608400>
uCallbackMessage = <_ctypes.CField object at 0x01608DC0>
uEdge = <_ctypes.CField object at 0x01608380>

Methods inherited from APPBARDATA:
__repr__(self)
__str__ = __repr__(self)

Data and other attributes inherited from APPBARDATA:
__dict__ = <dictproxy object at 0x0169F790>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'APPBARDATA' objects>
list of weak references to the object (if defined)

Methods inherited from Structure:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from Structure:
__new__ = <built-in method __new__ of _ctypes.StructType object at 0x0170A890>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class RECT(RECT)
    Simple RECT sub-class with repr for debugging
 
fields are: left, right, top, bottom
 
 
Method resolution order:
RECT
RECT
Structure
_ctypes._CData
object

Methods defined here:
__repr__(self)

Data and other attributes defined here:
bottom = <_ctypes.CField object at 0x015D7C60>
left = <_ctypes.CField object at 0x015D7700>
right = <_ctypes.CField object at 0x015D7C40>
top = <_ctypes.CField object at 0x015D7AA0>

Data and other attributes inherited from RECT:
__dict__ = <dictproxy object at 0x0169F850>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'RECT' objects>
list of weak references to the object (if defined)

Methods inherited from Structure:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from Structure:
__new__ = <built-in method __new__ of _ctypes.StructType object at 0x0170A890>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
Functions
       
FormatError(...)
FormatError([integer]) -> string
 
Convert a win32 error code into a string. If the error code is not
given, the return value of a call to GetLastError() is used.
addressof(...)
byref(...)
sizeof(...)
taskbarRectangle()
Retrieve the current windows taskbar rectangle

 
Data
        GetLastError = <ctypes._StdcallFuncPtr object at 0x015D3298>
SHAppBarMessage = <ctypes._StdcallFuncPtr object at 0x015D3348>
cdll = <ctypes._DLLS instance at 0x0160BAA8>
oledll = <ctypes._DLLS instance at 0x0160BAF8>
shell = <WinDLL 'shell32', handle 782f0000 at 15d6f58>
user32 = <WinDLL 'user32', handle 77e10000 at 15d6d28>
windll = <ctypes._DLLS instance at 0x0160BAD0>