This is a two stage operation.
Step 1 : Get the handle of the print dialog window using the FindWindow API function.
HWND FindWindow(
LPCTSTR lpClassName, // pointer to class name
LPCTSTR lpWindowName // pointer to window name
);
Once you have the Windows handle...
Step 2 : Use...
Each object that has a canvas has a width property and a clientwidth property. the scrollbar is not parth of the client canvas , therefore the objects width minus the clientwidth is the size of the scroll bar. Normally the is about 20 pixels but the code below will tell you exactly...
Does anyone know how to replace the string of a hint as the hint is displayed? My program is a system tray component and I want to use the hint to show the time elapsed since running.
Any help would be appreciated.
Does anyone know how to prevent a user dragging a form to a new position on the screen. Is there a way of locking the cordinates without having to get rid of the title bar?
If not, is there a way of detecting if your application has been dragged and dropped to a new position?
Thanks in...
To play this wave Memory must first be allocated (GLOBALALLOC), then locked (GLOBALLOCK) and when done with must be freed (GLOBALFREE). It would appear that some memory is not being freed. The GLOBALFREE function returns NUll if succesfull. Test for NULL.
This text was copied from the WIN32.HLP file found in your delphi help directory.
The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. Windows...
Hi
As an old VB programmer this was one of the first things I wanted to learn. Copy and paste this onto a newly created delphi project and run it. Object arrays (Control arrays in VB) are possible in Delphi they are just a bit harder to create. Anyway have fun with this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.