Tag Info

New answers tagged

1

I found that WM_EXITSIZEMOVE is an alternative to WM_MOVE. It detects when I'm done dragging the window, but it passes no values in WPARAM and LPARAM, so you have to do some detection. Here's a rough example: First, set these as static or global: static int x = 0, y = 0; static bool move = false, resize = false; Second, do your detection in WM_MOVING: ...


5

Back in the time of Windows 3.1, before Windows 95, you dragged the window, but it did not move. You were only moving an outline of the window, in form of semi-transparent frame. Only when you ended the drag, the window moved (jumping to final position; back then there were no graphics accelerators, so redraw of a window was expensive operation; resize ...


1

When you define a move completion as occurring at a microscopic level, then it makes sense that the WM_MOVE is sent following a WM_MOVING message. Windows determines a move based on a change in the location of the mouse over a very small time period (hundreds or thousands of times a second). Since it can't know if you are done moving, you get both messages. ...


4

There is no clean and safe way to quickly/efficiently "kill" a thread. You can signal to the thread object that it needs to terminate, but the thread needs to be written in such a way that it checks for this and then cleans itself up. Otherwise, you can end up with partially-completed operations, memory leaks, resource leaks, deadlocks, and all manner of ...


0

Another option is to write completely separate native apps with no shared code. Obviously this is a huge breach of the Don't Repeat Yourself principle, but it's actually quite common and successful, especially in larger companies. It means each team can focus purely on their platform without constantly having to coordinate their work with the shared code. ...


0

In a high-level language, typically it is mostly cross-platform anyway. Examples such as Java or Python will work on any supported platform. Your task then is just to test and fix up bugs on each platform you want to support to catch the edge cases (such as different filename or folder support). For lower level languages, the platform specific parts are ...


0

Best way of achieving this is by using a higher-level modern language that compiles to an independent bytecode. A good example would be using Xamarin toolchain (paid): 1) write code in C# and/or F# - many similarities with Swift: http://developer.xamarin.com/guides/cross-platform/fsharp http://msdn.microsoft.com/en-us/library/67ef8sbd.aspx 2) compile ...



Top 50 recent answers are included