Good morning,
How can i do this ? When i open my Powerbuilder app it's shows on the first monitor after that i move the app on the second monitor, and closed it.
I want that the next time i open the app it appears on the second monitor.
i'll waiting for your answers!
Have a nice day.
https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types
Longptr pWindow
pWindow = Handle(Parent)
lb_1.AddItem(String(pWindow))
I generated 32bit and 64bit exes. The 32bit handle is 6 digits and the 64bit handle is 7 digits.
I checked the IDE Browser window and the Handle function is defined as returning longptr despite what the help file says. I guess technically they should be longptr but in practice long will work in most cases.
Thanks for pointing this out.
I'm a little surprised you don't run into runtime errors due to inconsistencies in the amount of data passed on the execution call stack between PB and Windows, however.
The size of a WinAPI structure that contains a handle increases when moving from 32-bit to 64-bit because the size of the structure element that contains the handle increases. Padding within the structure to align members may also be affected. This was really brought home when attempting to use a FLASHWINFO structure with the FlashWindowEx API function in a PB 64-bit application, so I used it as an example in my tutorial series about using the Windows API from PowerBuilder.