|
Welcome, Guest.
|
||||||
| Dot Net API Working with AutoCAD's Dot Net API? Ask your questions here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: 2009-08
Posts: 45
![]() |
Is there a way of making all windows Maximized so there is now flicker when cycling through document windows?
I've tried to set all active docs windows but they dont stay Maximized Code:
Private Sub MaxWindows()
Dim objDocs As DocumentCollection = AC_App.DocumentManager
For Each objDoc As Document In objDocs
If Not objDoc.Window.WindowState = Window.State.Maximized Then
ActiveDoc = objDoc
ActiveDoc.Window.WindowState = Window.State.Maximized
End If
Next
End Sub
|
|
|
|
|
|
#2 |
|
Member
Join Date: 2009-08
Posts: 45
![]() |
Thanks will look into this may be able to use this http://www.codeproject.com/KB/bugs/M...px?msg=3120888
|
|
|
|
|
|
#3 |
|
Member
Join Date: 2009-08
Posts: 45
![]() |
Tony can u share your implementation? understand if you cant. Thanks for your help!
|
|
|
|
|
|
#4 |
|
Member
Join Date: 2009-08
Posts: 45
![]() |
Thats cool I'll have a go sometime soon cheers anyways.
|
|
|
|
|
|
#5 | |
|
Member
Join Date: 2009-08
Posts: 45
![]() |
Quote:
documents are already opened Code:
Imports System.Runtime.InteropServices
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal Msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr
End Function
...
SendMessage(objDoc.Window.Handle, WM_MDINEXT, ActiveDoc.Window.Handle, 0)
ActiveDoc = objDoc
|
|
|
|
|
|
|
#6 |
|
Member
Join Date: 2009-08
Posts: 45
![]() |
Ok I will I'm just confused as the article is related to forms and controls not autocad windows... Ill play around. Im getting there tho my app is getting better everyday. cheers.
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Do not Reset the State of the Prospector Window | Civil 3D Wishes | CIVIL3D-003 (Archived) | 0 | 2008-05-02 06:45 PM |
| Opening Explorer Window with focus, on top of the AutoCAD window? | amaser | VBA/COM Interop | 2 | 2007-05-21 06:50 PM |
| Assign a Layer State to a Sheet Set then use that Layer State when Plotting | pgastelum | AutoLISP | 8 | 2006-10-11 08:36 PM |
| Return the text editing window to the way it was so a window pops up | prodrafter | AutoCAD General | 11 | 2006-03-31 11:04 PM |
| Selection window/crossing window parallel to UCS | acadwishlist | ACAD-001 (Archived) | 0 | 2005-11-15 06:06 PM |