Thursday, July 29, 2010
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > Dot Net API
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

Dot Net API Working with AutoCAD's Dot Net API? Ask your questions here!

Reply
 
Thread Tools Display Modes
Old 2009-09-20, 05:09 AM   #1
nwecksler
Member
 
Join Date: 2009-08
Posts: 45
nwecksler is infamous around these parts
Default Window State

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
nwecksler is offline   Reply With Quote
Old 2009-09-21, 04:09 PM   #2
nwecksler
Member
 
Join Date: 2009-08
Posts: 45
nwecksler is infamous around these parts
Default Re: Window State

Thanks will look into this may be able to use this http://www.codeproject.com/KB/bugs/M...px?msg=3120888
nwecksler is offline   Reply With Quote
Old 2009-09-22, 01:50 PM   #3
nwecksler
Member
 
Join Date: 2009-08
Posts: 45
nwecksler is infamous around these parts
Default Re: Window State

Tony can u share your implementation? understand if you cant. Thanks for your help!
nwecksler is offline   Reply With Quote
Old 2009-09-26, 09:19 PM   #4
nwecksler
Member
 
Join Date: 2009-08
Posts: 45
nwecksler is infamous around these parts
Default Re: Window State

Thats cool I'll have a go sometime soon cheers anyways.
nwecksler is offline   Reply With Quote
Old 2009-09-27, 03:50 PM   #5
nwecksler
Member
 
Join Date: 2009-08
Posts: 45
nwecksler is infamous around these parts
Default Re: Window State

Quote:
Originally Posted by tony.tanzillo View Post
If you're switching documents programmatically, you can avoid the flicker by sending a WM_MDINEXT window message to the document that preceeds the one you want to activate, but doing that is non-trivial.
Tony this is over my head but I have tried the following and still get the flicker

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
nwecksler is offline   Reply With Quote
Old 2009-09-29, 03:12 PM   #6
nwecksler
Member
 
Join Date: 2009-08
Posts: 45
nwecksler is infamous around these parts
Default Re: Window State

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.
nwecksler is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > Dot Net API

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 12:42 PM.