FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour OLE question concerning WINDOWSTATE
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
OLE question concerning WINDOWSTATE
Posted: Tue Sep 19, 2017 12:51 PM
Hello,

In my application I use an OLE instruction to define the way Word has to be shown

I use :
Code (fw): Select all Collapse
oWord:WindowState := 0/1/2
0 = normal window
1 = maximized window
2 = minimized window

Normally this instructions also has to work for Excel or Outlook.

So I use :
Code (fw): Select all Collapse
oExcel:WindowState := 0/1/2
oOutlook:WindowState := 0/1/2
But for Excel or Outlook my application is generating an error, although, to the Microsoft documentation WindowState is available both in Excel and Outlook.

Anyone any idea?

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: OLE question concerning WINDOWSTATE
Posted: Tue Sep 19, 2017 07:07 PM
For Excel, please use these constants:
Code (fw): Select all Collapse
xlMaximized -4137
xlMinimized -4140
xlNormal    -4143
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion