Results 1 to 9 of 9

Thread: [RESOLVED] APIs for Fixed Dialog

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Resolved [RESOLVED] APIs for Fixed Dialog

    What APIs and arguements does VB use to create a "Fixed Dialog" window? Thank you

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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&

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: APIs for Fixed Dialog

    Sorry, but how would I use that? I think it has something to do with SendMessage or SetWindowLong.

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: APIs for Fixed Dialog

    Quote Originally Posted by LaVolpe
    The SetWindowLong API is used to set those properties
    http://allapi.mentalis.org/apilist/2...414922C72.html

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: APIs for Fixed Dialog

    Specifically, what are you trying to do?

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: APIs for Fixed Dialog

    Thank you. Actually, what APIs and arguments do I need for a Fixed Single with a minimize box? Thanks

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  9. #9
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: APIs for Fixed Dialog

    Quote 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:
    1. BorderStyle = 1
    2. 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
  •  



Click Here to Expand Forum to Full Width