CanEasy COM-Help
CanEasy::IAppWindow Interface Reference

Inherits IDispatch.

Detailed Description

Gives access to the CanEasy main window.

If CanEasy is integrated into another process the main window is not shown by default. If you want to see the main window you can use IAppWindow.Open to show it.

interface IAppWindow : IDispatch
{
HRESULT Open(void);
HRESULT Close(void);
HRESULT ChangePosition([in] long lX, [in] long lY);
HRESULT x([out, retval] LONG*);
HRESULT y([out, retval] LONG*);
HRESULT MinimizeToTray(void);
HRESULT MaximizeFromTray(void);
};

Definition at line 627 of file cand_tlb.idl.

Member Function Documentation

◆ ChangePosition()

HRESULT CanEasy::IAppWindow::ChangePosition ( [in] long  lX,
[in] long  lY 
)

Changes the position of the main window

Parameters
lXx position of the CanEasy main window
lYy position of the CanEasy main window

◆ Close()

HRESULT CanEasy::IAppWindow::Close ( void  )

Closes the main window

◆ MaximizeFromTray()

HRESULT CanEasy::IAppWindow::MaximizeFromTray ( void  )

Restores all windows after call of MinimizeToTray.

Trace icon gets removed after windows are restored.

◆ MinimizeToTray()

HRESULT CanEasy::IAppWindow::MinimizeToTray ( void  )

Hides all windows and creates tray icon.

Making a double click on the tray icon will restore all windows.

◆ Open()

HRESULT CanEasy::IAppWindow::Open ( void  )

Opens the main window

Property Documentation

◆ x

LONG CanEasy::IAppWindow::x
get

Returns the x position

◆ y

LONG CanEasy::IAppWindow::y
get

Returns the y position

CanEasy::IAppWindow::ChangePosition
HRESULT ChangePosition([in] long lX, [in] long lY)
CanEasy::IAppWindow::Close
HRESULT Close(void)
CanEasy::IAppWindow::MaximizeFromTray
HRESULT MaximizeFromTray(void)
Restores all windows after call of MinimizeToTray.
CanEasy::IAppWindow::MinimizeToTray
HRESULT MinimizeToTray(void)
Hides all windows and creates tray icon.
CanEasy::IAppWindow::Open
HRESULT Open(void)
CanEasy::IAppWindow::x
LONG x
CanEasy::IAppWindow::y
LONG y