Modal dialog of a foreign window

From: Alexander Eisenhuth (newsuser_at_stacom-software.de)
Date: 06/30/04


Date: Wed, 30 Jun 2004 09:25:26 +0200

Hi,

I've a wxPython Application on Windows that glues a
database, Excel, and a GUI for configuration issues using
COM. Works pretty good. In the next step I want to integrate
the GUI-dialog more into Excel, so it should look like a
modal toplevel dialoge of Excel.

I've a class for the main dialog derived from wxFrame, and
doing on startup:
wxFrame.__init__(self, NULL, -1, cnfDesText, size=(800,600))

My Idea is now to give as parent the Window handle of Excel
to the constructor of wxFrame.

Not sure how the window handle can be retrieved (VBA,
win32-Extension, wxWindows, ...)

Any idea ??

Thanks a lot for all ideas, comments, hints in advance
Alexander



Relevant Pages

  • Re: C# Aplpication talking to Excel Add-In
    ... to have with Excel, I need to write a method in the "middle layer" that ... > You may consider embedding the workbook in the form itself. ... a managed window will ultimately map to a native OS window ... > management of an application's windows from outside the application. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: hide name box
    ... Excel 2007 has this capability but I was working in Excel 2002. ... ' Enables or disables a window. ... (ByVal hwnd As Long, _ ... Private Declare Function GetDesktopWindow Lib "user32" As Long ...
    (microsoft.public.excel.programming)
  • Re: Option-click to insert row?
    ... look in help for customizing shortcut keys. ... long before Excel 4) it worked this way. ... shortcut to "Insert cell, shift down", a potentially destructive ... bring this window to front while hiding the previous active ...
    (microsoft.public.mac.office.excel)
  • Re: C# Aplpication talking to Excel Add-In
    ... not change the default behavior of Excel which may cause other problem. ... You may consider embedding the workbook in the form itself. ... a managed window will ultimately map to a native OS window ... We'll build a managed user control to host Excel's main ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Excel.exe remains in memory.
    ... Instead of hoping for the right window, set your Excel ... Public Sub Main ... Dim xlhWnd As Long ...
    (microsoft.public.vb.general.discussion)