Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 1659528

@User 1659528
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Save/Restore appearance scheme
    U User 1659528

    Are there any way to Save/Restore appearance scheme from C++ code ?

    C / C++ / MFC c++ question

  • correctly play WM_MOUSEWHEEL
    U User 1659528

    Problem is solved. I don't find better way, than to mix WH_JOURNALRECORD hooks with interseption of WM_MOUSEWHEEL and sinchronising this messages on play.

    C / C++ / MFC help question

  • correctly play WM_MOUSEWHEEL
    U User 1659528

    Interesting idea. I have tried to put contents of wParam words to high-order words of EVENTMSG ParamL/ParamH . Regrettably it does not work. System works with X/Y coordinates only . So problem pending. BR Petr

    C / C++ / MFC help question

  • correctly play WM_MOUSEWHEEL
    U User 1659528

    Thanks for reply But I mean to playback with JournalPlaybackProc : Syntax LRESULT CALLBACK JournalPlaybackProc( int code, WPARAM wParam, LPARAM lParam ); Parameters code [in] Specifies a code the hook procedure uses to determine how to process the message. If code is less than zero, the hook procedure must pass the message to the CallNextHookEx .......... wParam This parameter is not used !!!!!!!!!!!!!!!!!!!. lParam [in] Pointer to an EVENTMSG structure that represents a message being processed by the hook procedure. ----------------------------------------------------------------------- The source of data to fill EVENTMSG structure is WM_MOUSEWHEEL message what returns WPARAM wParam LPARAM lParam; Parameters wParam The high-order word indicates the distance the wheel is rotated, expressed in multiples or divisions of WHEEL_DELTA, which is 120. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. The low-order word indicates whether various virtual keys are down. This parameter can be one or more of the following values. MK_CONTROL The CTRL key is down. MK_LBUTTON The left mouse button is down. MK_MBUTTON The middle mouse button is down. MK_RBUTTON The right mouse button is down. MK_SHIFT The SHIFT key is down. MK_XBUTTON1 Windows 2000/XP: The first X button is down. MK_XBUTTON2 Windows 2000/XP: The second X button is down. lParam The low-order word specifies the x-coordinate of the pointer, relative to the upper-left corner of the screen. The high-order word specifies the y-coordinate of the pointer, relative to the upper-left corner of the screen. ---------------------------------------------------------------------------- As it turns out there is no place in EVENTMSG for data stored in WM_MOUSEWHEEL message wParam. typedef struct { UINT message; UINT paramL; // place for x-coordinate UINT paramH; // place for y-coordinate DWORD time; HWND hwnd;} EVENTMSG, *PEVENTMSG;

    C / C++ / MFC help question

  • correctly play WM_MOUSEWHEEL
    U User 1659528

    I try to record and playback application session with help of WH_JOURNALRECORD and WH_JOURNALPLAYBACK hooks but can’t properly playback MOUSEWHEEL event ( rotation direction is ignored) JournalRecordProc and JournalPlaybackProc hook procedures use LPARAM ( pointer to the EVENTMSG structure ) to get/pass message specific information during recording/playing. This EVENTMSG structure has no member for WPARAM information, but key indicator and wheel rotation information are stored in WPARAM of WM_MOUSEWHEEL message. The same problem is with all messages with specific WPARAM info. How I can correctly play WM_MOUSEWHEEL message? Thanks in advance Petr

    C / C++ / MFC help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups