Re: API to return a folder's type: or
To answer my own question, this works just fine: ====== Sub Command_Click() Const FILE_ATTRIBUTE_READONLY = &H1& Const FILE_ATTRIBUTE_HIDDEN = &H2& Const FILE_ATTRIBUTE_SYSTEM = &H4& Const FILE_ATTRIBUTE_DIRECTORY = &H10& Const FILE_ATTRIBUTE_ARCHIVE = &H20& Const FILE_ATTRIBUTE_ENCRYPTED = &H40& Const FILE_ATTRIBUTE_NORMAL = &H80&
API to return a folder's type: or
Anyone know of an api that will return whether a folder is a true folder or is actually a symbolic link/junction? Perhaps an API that returns folder properties?
Re: Hooking WM_NCHITTEST or Usercontrol does not affect Left and Top
User control hosting and placement does not use the standard window positioning. When the control is moved, it changes the windowrect, but not the other way around. If I want a UC to move itself, I had to manually handle mousedown/move and chenge the extender top and left.
Re: Determine if a window is 'moveable' or not
Hello Jialiang, fully helpful answer, your workaround is working perfectly, WM_INITMENUPOPUP force the menu to be created, and now GetMenuState can retrieve the actual state of the menu item. For those interested in, if there is a non-moveable window that is restored from the maximized or from the minimized state, we will get again SC_MOVE enabled, so we need to send the message each time we want to know the state because the menu is reset.
Re: Hooking WM_NCHITTEST or Usercontrol does not affect Left and Top
That actually makes sense. Same thing happens if you manually sort a ListView. VB is keeping all these internal tables, and they're not actually truth-checked more often than not. May be that you have to live with this.
Hooking WM_NCHITTEST or Usercontrol does not affect Left and Top
Hello I am having a few issues when hooking WM_NCHITTEST in VB6 then reading the new values given to Left and Top of a Usercontrol. My Windows hook returns HTCAPTION for WM_NCHITTEST when the user clicks on the Usercontrol. This has the affect of moving the Usercontrol like dragging a form border. The hook works correctly and the Usercontrol visually moves on the