开发者

How to hide MS Access parent MDI window, yet still show the Windows Taskbar reference?

开发者 https://www.devze.com 2023-03-14 21:42 出处:网络
I have utlized the User32 library from MS Access in VBA to Hide the MDI window: Global Const SW_HIDE = 0

I have utlized the User32 library from MS Access in VBA to Hide the MDI window:

Global Const SW_HIDE = 0
Global Const SW_SHOWNORMAL = 1
Global Const SW_SHOWMINIMIZED = 2
Global Const SW_SHOWMAXIMIZED = 3

' Windows User32 Library reference to modify the window by one of the above commands
Private Declare Function apiShowWindow Lib "User32" Alias "ShowWindow" _
 (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long

At the appropriate point in my application I have triggered a call to this function effectively hiding the application while specific forms are set with Modal = True and Popup = True to have them show through the hidden parent开发者_运维百科 MDI window.

This works great! However, I would like to still have a reference on the windows Taskbar for the open instance of MS Access:

How to hide MS Access parent MDI window, yet still show the Windows Taskbar reference?

This functionality went away once I hid the parent MDI window. Previously the user could click on this reference order to bring focus back to the respective open form.

Does anyone know how I can accomplish this? Is there a User32 Library reference or parameter which could be passed into the apiShowWindow method to have this occur?


why not just make the call with SW_SHOWMINIMIZED? that seems to be the desired functionality. (e.g. window not showing but still on taksbar vs. window totally hidden)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号