onEvent, lparam structure parsing.

new topic     » topic index » view thread      » older message » newer message

Greetings!

I have a question about recieving information from a WM_NOTIFY message. I am
creating a wrapper around a control and it sends lots of information via the
WM_NOTIFY message. All of it's information via the WM_NOTIFY message
contains the real stuff on lParam. On lParam is has a structure, and inside
the structure is another structure that contains the actual message. The C
structures look like:

struct NotifyHeader {
    // hwndFrom is really an environment specifc window handle or pointer
    // but most clients of Scintilla.h do not have this type visible.
    //WindowID hwndFrom;
    void *hwndFrom;
    unsigned int idFrom;
    unsigned int code;
};

struct SCNotification {
    struct NotifyHeader nmhdr;
    int position;   // SCN_STYLENEEDED, SCN_MODIFIED, SCN_DWELLSTART,
SCN_DWELLEND
    int ch;     // SCN_CHARADDED, SCN_KEY
    int modifiers;  // SCN_KEY
    int modificationType;   // SCN_MODIFIED
    const char *text;   // SCN_MODIFIED
    int length;     // SCN_MODIFIED
    int linesAdded; // SCN_MODIFIED
    int message;    // SCN_MACRORECORD
    uptr_t wParam;  // SCN_MACRORECORD
    sptr_t lParam;  // SCN_MACRORECORD
    int line;       // SCN_MODIFIED
    int foldLevelNow;   // SCN_MODIFIED
    int foldLevelPrev;  // SCN_MODIFIED
    int margin;     // SCN_MARGINCLICK
    int listType;   // SCN_USERLISTSELECTION
    int x;          // SCN_DWELLSTART, SCN_DWELLEND
    int y;      // SCN_DWELLSTART, SCN_DWELLEND
};

Can anyone help me or tell me where I can get information about parsing and
retrieving this information in my Euphoria program? I am using win32lib.

Thanks!

Jeremy Cowgar

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu