wxCONCAT
wxDYNLIB_FUNCTION
wxEXPLICIT
::wxGetKeyState
wxLL
wxLongLongFmtSpec
::wxNewId
wxON_BLOCK_EXIT
wxON_BLOCK_EXIT_OBJ
::wxRegisterId
::wxDDECleanUp
::wxDDEInitialize
::wxEnableTopLevelWindows
::wxFindMenuItemId
::wxFindWindowByLabel
::wxFindWindowByName
::wxFindWindowAtPoint
::wxFindWindowAtPointer
::wxGetActiveWindow
::wxGetBatteryState
::wxGetDisplayName
::wxGetPowerType
::wxGetMousePosition
::wxGetMouseState
::wxGetResource
::wxGetStockLabel
::wxGetTopLevelParent
::wxLaunchDefaultBrowser
::wxLoadUserResource
::wxPostDelete
::wxPostEvent
::wxSetDisplayName
::wxStripMenuCodes
wxULL
wxVaCopy
::wxWriteResource
wxCONCAT(x, y)
This macro returns the concatenation of two tokens x and y.
wxDYNLIB_FUNCTION(type, name, dynlib)
When loading a function from a DLL you always have to cast the returned void * pointer to the correct type and, even more annoyingly, you have to repeat this type twice if you want to declare and define a function pointer all in one line
This macro makes this slightly less painful by allowing you to specify the type only once, as the first parameter, and creating a variable of this type named after the function but with pfn prefix and initialized with the function name from the wxDynamicLibrary dynlib.
Parameters
type
name
dynlib
wxEXPLICIT is a macro which expands to the C++ explicit keyword if the compiler supports it or nothing otherwise. Thus, it can be used even in the code which might have to be compiled with an old compiler without support for this language feature but still take advantage of it when it is available.
bool wxGetKeyState(wxKeyCode key)
For normal keys, returns true if the specified key is currently down.
For togglable keys (Caps Lock, Num Lock and Scroll Lock), returns true if the key is toggled such that its LED indicator is lit. There is currently no way to test whether togglable keys are up or down.
Even though there are virtual key codes defined for mouse buttons, they cannot be used with this function currently.
Include files
<wx/utils.h>
wxLongLong_t wxLL(number)
This macro is defined for the platforms with a native 64 bit integer type and allows to define 64 bit compile time constants:
#ifdef wxLongLong_t
wxLongLong_t ll = wxLL(0x1234567890abcdef);
#endif
Include files<wx/longlong.h>
See also
This macro is defined to contain the printf() format specifier using which 64 bit integer numbers (i.e. those of type wxLongLong_t) can be printed. Example of using it:
#ifdef wxLongLong_t
wxLongLong_t ll = wxLL(0x1234567890abcdef);
printf("Long long = %" wxLongLongFmtSpec "x\n", ll);
#endif
See alsoInclude files
<wx/longlong.h>
long wxNewId()
Generates an integer identifier unique to this run of the program.
Include files
<wx/utils.h>
wxON_BLOCK_EXIT0(func) wxON_BLOCK_EXIT1(func, p1) wxON_BLOCK_EXIT2(func, p1, p2)
This family of macros allows to ensure that the global function func with 0, 1, 2 or more parameters (up to some implementaton-defined limit) is executed on scope exit, whether due to a normal function return or because an exception has been thrown. A typical example of its usage:
void *buf = malloc(size);
wxON_BLOCK_EXIT1(free, buf);
Please see the original article by Andrei Alexandrescu and Petru Marginean
published in December 2000 issue of C/C++ Users Journal for more
details.Include files
<wx/scopeguard.h>
See also
wxON_BLOCK_EXIT_OBJ0(obj, method) wxON_BLOCK_EXIT_OBJ1(obj, method, p1) wxON_BLOCK_EXIT_OBJ2(obj, method, p1, p2)
This family of macros is similar to wxON_BLOCK_EXIT but calls a method of the given object instead of a free function.
Include files
<wx/scopeguard.h>
void wxRegisterId(long id)
Ensures that ids subsequently generated by NewId do not clash with the given id.
Include files
<wx/utils.h>
void wxDDECleanUp()
Called when wxWidgets exits, to clean up the DDE system. This no longer needs to be called by the application.
See also wxDDEInitialize.
Include files
<wx/dde.h>
void wxDDEInitialize()
Initializes the DDE system. May be called multiple times without harm.
This no longer needs to be called by the application: it will be called by wxWidgets if necessary.
See also wxDDEServer, wxDDEClient, wxDDEConnection, wxDDECleanUp.
Include files
<wx/dde.h>
void wxEnableTopLevelWindows(bool enable = true)
This function enables or disables all top level windows. It is used by ::wxSafeYield.
Include files
<wx/utils.h>
int wxFindMenuItemId(wxFrame *frame, const wxString& menuString, const wxString& itemString)
Find a menu item identifier associated with the given frame's menu bar.
Include files
<wx/utils.h>
wxWindow * wxFindWindowByLabel(const wxString& label, wxWindow *parent=NULL)
NB: This function is obsolete, please use wxWindow::FindWindowByLabel instead.
Find a window by its label. Depending on the type of window, the label may be a window title or panel item label. If parent is NULL, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. The search is recursive in both cases.
Include files
<wx/utils.h>
wxWindow * wxFindWindowByName(const wxString& name, wxWindow *parent=NULL)
NB: This function is obsolete, please use wxWindow::FindWindowByName instead.
Find a window by its name (as given in a window constructor or Create function call). If parent is NULL, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. The search is recursive in both cases.
If no such named window is found, wxFindWindowByLabel is called.
Include files
<wx/utils.h>
wxWindow * wxFindWindowAtPoint(const wxPoint& pt)
Find the deepest window at the given mouse position in screen coordinates, returning the window if found, or NULL if not.
wxWindow * wxFindWindowAtPointer(wxPoint& pt)
Find the deepest window at the mouse pointer position, returning the window and current pointer position in screen coordinates.
wxWindow * wxGetActiveWindow()
Gets the currently active window (Windows only).
Include files
<wx/windows.h>
wxBatteryState wxGetBatteryState()
Returns battery state as one of wxBATTERY_NORMAL_STATE, wxBATTERY_LOW_STATE, wxBATTERY_CRITICAL_STATE, wxBATTERY_SHUTDOWN_STATE or wxBATTERY_UNKNOWN_STATE. wxBATTERY_UNKNOWN_STATE is also the default on platforms where this feature is not implemented.
Include files
<wx/utils.h>
wxString wxGetDisplayName()
Under X only, returns the current display name. See also wxSetDisplayName.
Include files
<wx/utils.h>
wxPowerType wxGetPowerType()
Returns the type of power source as one of wxPOWER_SOCKET, wxPOWER_BATTERY or wxPOWER_UNKNOWN. wxPOWER_UNKNOWN is also the default on platforms where this feature is not implemented.
Include files
<wx/utils.h>
wxPoint wxGetMousePosition()
Returns the mouse position in screen coordinates.
Include files
<wx/utils.h>
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current state used to ousestate">
wxMouseState wxGetMouseState()
Returns the current s