.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Alternativ e method for SetFocusTo DwgView()?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
77 Views, 1 Replies
01-15-2013 01:02 AM
Unfortunately, ARX 2007 does not provide Autodesk.AutoCAD.Internal.Utils.SetFocusTo
What would be the best way to mimic this method?
Re: Alternativ e method for SetFocusTo DwgView()?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-15-2013 03:08 AM in reply to:
dynamicscope
Try this code (not the same as SetFocusToDwgView but can be helpful):
[DllImport("user32.dll")]
extern static IntPtr SetFocus(IntPtr hWnd);
static void SetFocusToActiveDocument()
{
SetFocus(Application.DocumentManager.MdiActiveDocu ment.Window.Handle);
}
static void SetFocusToMainWindow()
{
SetFocus(Application.MainWindow.Handle);
}




