Re: conio.h --> window (int left, int top, int right, int bottom)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Maverick (Maverick_at_discussions.microsoft.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 01:07:02 -0700

thx for the tips Daniel
Assume the follow is the layout of a console screen
---------------------------------------------
| |
| |
|------------------|------------------------|
| x | |
|------------------|------------------------|
If I want to place a text on a certain area of the screen (for example Area
X in the above console screen), I use window(int, int, int, int) method.
Arguments are left, top, right and bottom coordinates of the window, and
after calling this method cout (or Console.out.writeline in C#) will print in
that console area until you create a new one. Point to remember:
window-arguments are not pixel coordinates, they refer to 80 colums and 24
rows of text. This makes placing text exactly inside (for example) an area
somewhat difficult... Header file is conio.h.

"Daniel O'Connell [C# MVP]" wrote:

>
> "Maverick" <Maverick@discussions.microsoft.com> wrote in message
> news:67C21CB7-CB69-42C2-8079-2E6EEC69072A@microsoft.com...
> > There's a function in Borland C conio.h
> >
> > window (int left, int top, int right, int bottom)
> >
> > how can i provide the same function in C#
>
> A description of what the function does would be nice. You need to post with
> the assumption that no one knows what it is.
> I'm not even having much luck googling this, it seems like conio.h has a
> number of different uses.
>
>
>



Relevant Pages

  • RE: conio.h --> window (int left, int top, int right, int bottom)
    ... X in the above console screen), I use window(int, int, int, int) method. ... Arguments are left, top, right and bottom coordinates of the window, and ... > window ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How add buton onto title bar of any external active window?
    ... I want to add buttons ontoany active window. ... int sm_CXSIZE; ... static int WindowsFeaturesWidth(HWND hwnd, DWORD style) ... LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM ...
    (microsoft.public.win32.programmer.gdi)
  • Re: CreateProcess() its extermely slow
    ... I notice that if my application has no Window, ... int APIENTRY _tWinMain(HINSTANCE hInstance, ... LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, ... LPARAM lParam) ...
    (microsoft.public.vc.mfc)
  • JFrame Resize Issues (Redux)
    ... However, when the LookAndFeel is set, Java's Window Manager ... public int OffSetX = 0; ... private Rectangle positRectangle; ... public void componentHidden{ ...
    (comp.lang.java.programmer)
  • Re: "edit" control is read only?
    ... standard code required to get an edit control to work... ... LRESULT CALLBACK WndProc_CW2 (HWND, UINT, WPARAM, LPARAM); ... //Name and Class name of main window ... PSTR szCmdLine, int iCmdShow) ...
    (microsoft.public.vc.language)