CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: VictorN

Search: Search took 0.40 seconds.

  1. Replies
    15
    Views
    24,629

    Re: how use WriteConsoleOutputAttribute() function?

    2kaud already suggested you a way to achieve it. In some of your other threads. :cool:
  2. Replies
    15
    Views
    24,629

    Re: how use WriteConsoleOutputAttribute() function?

    DWORD NumberOfAttrsWritten;
    WORD attr = Forecolor|BackColor<<4;
    WriteConsoleOutputAttribute(GetStdHandle(STD_OUTPUT_HANDLE), &attr, ..., ..., &NumberOfAttrsWritten);
  3. Replies
    15
    Views
    24,629

    Re: how use WriteConsoleOutputAttribute() function?

    You define a WORD variable, set the desired character attributes to it, and then pass in the pointer of this variable to the WriteConsoleOutputAttribute:

    WORD attr = Forecolor|BackColor<<4;...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured