Re: NewEra
Posted in 1997
Hope this help's (work's with newera 2.2): function MaximizeWindow( win ixwindow ) returning void BEGIN_C HWND hwnd = __getHWndFromixWindow( win ); SendMessage( hwnd, (UINT ) WM_SYSCOMMAND, (WPARAM) SC_MAXIMIZE, (LPARAM) 0 ); END_C end function Dalton Cranston wrote in article <34053289.1606259@go52>... :On 28 Aug 1997 03:13:14 -0400, dbonnici@ptl.com.mt (David Bonnici) :wrote: : :>Hi all :> :>I am writing an application using NewEra3.0 and need the functionality :>of a "Print Setup Dialog box". Any one knows how I can implement the :>standard dialog into NewEra ? :> :>Also, another thing. There seems to be no maximise() function around ! I :>need some code which will have the same effect on a window. :> :Hi David, :It is possible to access all of the common dialogs of which the Print :Dialog box is a member, however you have to use C and the windows SDK :to do it. : :The private function __getHWndFromixWindow() allows you to get to the :internal windows handle from your NewEra graphical objects. From there :it is possible to do just about anything. The clik manual has some :examples of how to integrate c and C++ code into NewEra and how to get :windows handles and instances. : :What version of NewEra are you running (I have assumed that you are on :a Microsoft platform) ? There are slightly different calls to the SDK :depending on which OS you are running. The clik manual along with a :good windows programming book, e.g. Charles Petzold's Programming :Window's 95, should get you well on the way. : : :Dalton :