Printable Version of Topic

Click here to view this topic in its original format

PMView Pro Forums _ PMView - OS/2 Technical Support _ Scroll message for jumping through pics - where to post WM_CHAR message

Posted by: Klaus Breining Dec 1 2003, 05:35 AM

I am further extending AMouse features. Currently PMView support is from my point of view quite good, but I am missing one feature: If I am in a directory containing multiple pics, I can jump through them using PgUp, PgDn. I would like to simulate this using the mouse wheel. I already tried to post the appropriate WM_CHAR message to different window handles in the class hierarchy, but currently without success. To shorten the "reengineering phase" just the question here, mainly to Peter, of course: where to post which message to get the desired effect?

Regards
Klaus Breining

Posted by: Peter Dec 3 2003, 06:12 PM

I would suggest posting a WM_COMMAND message to the client window (I believe posting to the frame window should work fine too).

Set the Command ID (mp1) to 1013 (previous file) or 1014 (next file).

Doing it this way, you can be sure that it works regardless of key mappings. (Notice that users can remap the keys in PMView, so sending PgUp/PgDn WM_CHAR messages is not a good idea in the first place. Also, PMView v0.93-v1.05 used the keypad<+> and keypad<-> keys. Sending PgUp/PgDn would not work for these PMView versions nor for anyone using PMView 2000 or PMView Pro with v1.0 key mappings).

FWIW, I cross-checked the Command ID codes with older versions of PMView. The good news is that they have stayed the same (1013 & 1014) in [b:post_uid0]all[/b:post_uid0] PMView versions since v0.93 when the file sequencer functionality was introduced.

Please let me know if you implement it this way. If you do, I will make a note in the header files about that AMouse uses these IDs and that I should leave them unchanged in future versions too.

Thanks,

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)