What APIs and arguements does VB use to create a "Fixed Dialog" window? Thank you
Printable View
What APIs and arguements does VB use to create a "Fixed Dialog" window? Thank you
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&
Sorry, but how would I use that? I think it has something to do with SendMessage or SetWindowLong.
http://allapi.mentalis.org/apilist/2...414922C72.htmlQuote:
Originally Posted by LaVolpe
Specifically, what are you trying to do?
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.
Thank you. Actually, what APIs and arguments do I need for a Fixed Single with a minimize box? Thanks
But you havent stated if your customizing a form created witht eh VB GUI or are creating a form completely from scratch?
Just set two properties of the form in the IDE:Quote:
Originally Posted by abazabam
- BorderStyle = 1
- MinButton = True