|
-
Jan 4th, 2008, 02:22 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] APIs for Fixed Dialog
What APIs and arguements does VB use to create a "Fixed Dialog" window? Thank you
-
Jan 4th, 2008, 02:35 PM
#2
Re: APIs for Fixed Dialog
If you are asking what window styles a fixed dialog window has, they are shown below with their values. The SetWindowLong API is used to set those properties. Obviously other APIs are involved in the creation of a window, like CreateWindowEx for example
Code:
'Fixed Dialog Window Styles - per Spy++
WS_VISIBLE = &H10000000
WS_CLIPCHILDREN = &H2000000
WS_CLIPSIBLINGS = &H4000000
WS_BORDER = &H800000
WS_DLGFRAME = &H400000
WS_SYSMENU = &H80000
WS_OVERLAPPED = &H0&
WS_EX_LEFT = &H0&
WS_EX_LTRREADING = &H0&
WS_EX_RIGHTSCROLLBAR = &H0&
WS_EX_DLGMODALFRAME = &H1&
WS_EX_WINDOWEDGE = &H100&
-
Jan 4th, 2008, 02:42 PM
#3
Thread Starter
Hyperactive Member
Re: APIs for Fixed Dialog
Sorry, but how would I use that? I think it has something to do with SendMessage or SetWindowLong.
-
Jan 4th, 2008, 02:45 PM
#4
Re: APIs for Fixed Dialog
 Originally Posted by LaVolpe
The SetWindowLong API is used to set those properties
http://allapi.mentalis.org/apilist/2...414922C72.html
-
Jan 5th, 2008, 07:41 AM
#5
Re: APIs for Fixed Dialog
Specifically, what are you trying to do?
-
Jan 5th, 2008, 01:14 PM
#6
Re: APIs for Fixed Dialog
Sounds like he is trying to change a form from one style to a Fixed Dialog style or creating a form from scratch.
If you are trying to change the style during runtime the simple BorderStyle property of the form will not let you change the style during runtime so APIs musst be used.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 19th, 2008, 12:24 AM
#7
Thread Starter
Hyperactive Member
Re: APIs for Fixed Dialog
Thank you. Actually, what APIs and arguments do I need for a Fixed Single with a minimize box? Thanks
-
Jan 19th, 2008, 04:39 AM
#8
Re: APIs for Fixed Dialog
But you havent stated if your customizing a form created witht eh VB GUI or are creating a form completely from scratch?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 19th, 2008, 03:18 PM
#9
Re: APIs for Fixed Dialog
 Originally Posted by abazabam
Thank you. Actually, what APIs and arguments do I need for a Fixed Single with a minimize box? Thanks
Just set two properties of the form in the IDE:
- BorderStyle = 1
- MinButton = True
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|