Skip to content

Coulomb

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #191324
    Coulomb
    Member

    Using the direct-call subclassing, your subclass handlers will look like this:

    LRESULT CALLBACK
    mySubclassHandler( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
    {
    switch(msg)
    {
    case WM_whatever:
    // ... handlers look like this
    break; // continue with default handler
    case WM_other:
    // ... handlers look like this
    return value; // value as per message specification
    //...
    } //*msg*/
    return CallWindowProc(superClassHandler, hwnd, msg, wParam, lParam);
    }

    There are only three ways of subclassing in windows.

    1. direct-call subclassing << — Above example
    2. superclass-driven subclassing
    3. “classic” subclassing << — Most common in windows.

    There are some terms you can google 🙂

    Ill post more if people want me too.

Viewing 1 post (of 1 total)