News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Cursor change event

Started by jj2007, December 06, 2012, 06:16:20 AM

Previous topic - Next topic

jj2007


MichaelW

It works well Dave, but on my systems one of the 4 possible orientations at the intersection is missing.
Well Microsoft, here's another nice mess you've gotten us into.

dedndave

you mean the ne/sw cursor ?
this particular application didn't really warrant the forth cursor

there are 3 cases:
you are on the vertical divider
you are on the horizontal divider
you are on both dividers

tell me what the 4th case is, and i'll put the cursor on it   :biggrin:
(and, before it hits the page, i am not counting "you are not on any divider" as a case - lol)

dedndave

i made a few minor changes and did some cleanup
updated the previous post with a new attachment

MichaelW

The Microsoft name for the one missing is Diagonal Resize 2, but I see now that the functionality is there for dragging in both diagonal directions. I was expecting different cursors for the two directions, but I now think it would be a needless complexity.
Well Microsoft, here's another nice mess you've gotten us into.

Magnum

That is a pretty neat.

Will put that in my source code directory.

Andy
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

Michael,
if you look at the _main source, i do in fact load the 4th cursor
that's because i used it in the program from which i copied this code
that window composition is reversable   :P
and, i figured that someone else may want it
the LoadCursor ID names are... (there are more - see LoadCursor)
IDC_SIZENS
IDC_SIZEWE
IDC_SIZENWSE
IDC_SIZENESW
i think the "diagonal resize" name is for the cursor file, itself (C:\Windows\Cursors)

thanks Andy   :t

dedndave

for this window, it made sense to use both diagonal sizing cursors
i use the ne/sw one for the first case and the nw/se one for the second