Hello everyone,
I need to use shellexecute to open an outlook application or an html file and assign it to a window,
but what it does is open the application or the html file in a new window.
I am using this code
I need to use shellexecute to open an outlook application or an html file and assign it to a window,
but what it does is open the application or the html file in a new window.
I am using this code
#include "fivewin.ch"
//------------------------------------//
#define SW_HIDE Â Â Â Â Â Â Â Â Â Â Â Â 0 Â Â Â
#define SW_SHOWNORMAL Â Â Â Â Â 1 Â Â Â
#define SW_SHOWMINIMIZED Â Â Â Â 2 Â Â Â
#define SW_MAXIMIZE Â Â Â Â Â Â Â Â 3 Â
#define SW_SHOWMAXIMIZED Â Â Â Â 3 Â Â Â
#define SW_SHOWNOACTIVATE Â 4 Â Â Â
#define SW_MINIMIZE Â Â Â Â Â Â Â Â 6 Â Â Â
#define SW_SHOWMINNOACTIVE Â 7 Â Â Â
#define SW_SHOWNA Â Â Â Â Â Â Â Â Â 8 Â
#define SW_RESTORE Â Â Â Â Â Â Â Â Â 9 Â Â Â
#define SW_SHOW Â Â Â Â Â Â Â Â Â Â Â 5 Â Â
#define SW_SHOWDEFAULT Â Â Â 10 Â
//------------------------------------//
Function Main()
  Local oWnd
  Local cTitle := "Main Principal"
  Local cURL  := "mailto:email@domain.com" // cFilePath( GetModuleFilename( GetInstance() ) ) + "btkserver.htm"
   Â
  DEFINE WINDOW oWnd TITLE cTitle
    Â
  ACTIVATE WINDOW oWnd;
    MAXIMIZED;
    ON INIT ShellExecute( oWnd:hWnd, "open", cURL,,, SW_RESTORE )
  // ShellExecute( GetActiveWindow(), "open", cURL,,, SW_RESTORE )
   Â
Return Nil