neoWidgets
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
neo::Message Struct Reference

Wrap parameters of WndProc in a struct. Can be used for any message. More...

#include <Message.h>

Inheritance diagram for neo::Message:
Inheritance graph
[legend]

Public Member Functions

LRESULT Default ()
 
void Init (HWND pHwnd, UINT pMessage, WPARAM pWP, LPARAM pLP)
 
void Result (LRESULT res)
 
void ResultDefault ()
 

Public Attributes

HWND hwnd
 
LPARAM lp
 
UINT message
 
WindowBasemessageHandler
 
LRESULT result
 
bool resultSet
 
WPARAM wp
 

Detailed Description

Wrap parameters of WndProc in a struct. Can be used for any message.

Member Function Documentation

LRESULT neo::Message::Default ( )
inline

Calls the default window procedure.

void neo::Message::Init ( HWND  pHwnd,
UINT  pMessage,
WPARAM  pWP,
LPARAM  pLP 
)
inline

The reason to have an Init() function besides the ctor is to make subclassing easier (we don't need to override ctor's)

void neo::Message::Result ( LRESULT  res)
inline

By calling Result(), the message is marked as finished and will not be further processed.

Parameters
resThe value that the window procedure will return for this message.
Note
If this function is used, the DefWindowProc will not be called, which can be useful if the default implementation needs to be stopped.
void neo::Message::ResultDefault ( )
inline

Combines Result() and Default().


The documentation for this struct was generated from the following files: