The following gets the job done:
hWnd = CreateWindow(...);
SetWindowLong(hWnd, GWL_STYLE, WS_POPUP | WS_MINIMIZEBOX);
SetWindowLong(hWnd, GWL_EXSTYLE, 0);
ShowWindow(hWnd, ...);
You were probably missing WS_MINIMIZEBOX
.
More Related Contents:
- System Error. Code: 8. Not enough storage is available to process this command
- Delphi – get what files are opened by an application
- Inter-process communication
- c++ vectors causing break in my game [closed]
- Select Directory error … delphi 7 [closed]
- Problems with ADC/SBB and INC/DEC in tight loops on some CPUs
- How can I search for Delphi documentation? [closed]
- Delphi: Prompt for UAC elevation when needed
- How can I tell if another instance of my program is already running?
- Why should I not use “with” in Delphi?
- How can I allow a form to accept file dropping without handling Windows messages?
- How should I prepare my 32-bit Delphi programs for an eventual 64-bit compiler? [duplicate]
- How to access private methods without helpers?
- ORM for DELPHI win32
- How to properly free records that contain various types in Delphi at once?
- FTP Over SSH (SFTP) In delphi 2010
- Creating a component with named sub-components?
- How to implement multiple inheritance in delphi?
- Is there a way to instantiate a class by its name in delphi?
- Could not find system file when it actually exists
- Delphi: idHttp+SSL
- How to change default sound playback device programmatically?
- How do I draw the selected list-box item in a different color?
- TThread.resume is deprecated in Delphi-2010 what should be used in place?
- How to disable VCL styles in Delphi
- why two aliases to “array of string” treated differently?
- Firemonkey Grid Control – Styling a Cell based on a value (via the OnGetValue function call)
- Free Encryption library for Delphi [closed]
- Why are Delphi objects assigned even after calling .Free?
- GetThreadLocale returns different value than GetUserDefaultLCID?