PB170
Well-known member
Hi everyone
A while back I had the idea to begin learning to program, and what better way to do so than with C and the Macintosh Toolbox
It's mainly a hobby at this point, and I just see it as a nice bonus to learn some general programming concepts in the process. I've recently moved on from pure C to Toolbox programming – challenging on a whole new level to say the least But I'm slowly moving forward.
Naturally, tons of bugs and questions pop up all the time, but this far I've managed to fix and answer most of them myself. There is one issue that I'm stuck with however, so I'm reaching out to all of you here for input. (Would this be the best place for these types of questions? Classic mac programming appears to be a little too niche for Stack Overflow, at least )
My question is this: What would be the most convenient way to test if a window has been moved?
DragWindow() doesn't return any result; otherwise that would have been ideal. I suppose I could track the mouse position after the call to DragWindow() but I feel there must be a better way to do it.
I'd be grateful any of you could point me in the right direction here.
I'm using Think C 5 and System 7.1.
(More questions will likely follow, hence the plural in the title )
A while back I had the idea to begin learning to program, and what better way to do so than with C and the Macintosh Toolbox
It's mainly a hobby at this point, and I just see it as a nice bonus to learn some general programming concepts in the process. I've recently moved on from pure C to Toolbox programming – challenging on a whole new level to say the least But I'm slowly moving forward.
Naturally, tons of bugs and questions pop up all the time, but this far I've managed to fix and answer most of them myself. There is one issue that I'm stuck with however, so I'm reaching out to all of you here for input. (Would this be the best place for these types of questions? Classic mac programming appears to be a little too niche for Stack Overflow, at least )
My question is this: What would be the most convenient way to test if a window has been moved?
DragWindow() doesn't return any result; otherwise that would have been ideal. I suppose I could track the mouse position after the call to DragWindow() but I feel there must be a better way to do it.
I'd be grateful any of you could point me in the right direction here.
I'm using Think C 5 and System 7.1.
(More questions will likely follow, hence the plural in the title )