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

Search:

Type: Posts; User: MrViggy

Page 1 of 80 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: [RESOLVED] Calling default in OnNcPaint defore my painting paints over mine?

    Okay, I finally found one solution to my problem (there may be others). Before I do my painting, I can call the default window proc, passing in a nonclient region that is only the menu area:


    ...
  2. Re: Calling default in OnNcPaint defore my painting paints over mine?

    Correct. I'm not, really. The code excludes the client area from the clipping region, so I don't have to worry about "accidentally" drawing in the client region.

    Also, in reading the MSDN, the...
  3. Re: Calling default in OnNcPaint defore my painting paints over mine?

    I tried handling the WM_NCCALCSIZE message, but nothing inside the client area was being painted. I set the rectangles to the coords of the client area.

    I'll give it another shot...

    Thanks!
    ...
  4. Re: Calling default in OnNcPaint defore my painting paints over mine?

    Okay, I've attached an example of what I'm trying to do. Build and run the program, and notice that the menu isn't drawn (until you hover the mouse over it). Comment out the "Default()" calls in my...
  5. Re: Calling default in OnNcPaint defore my painting paints over mine?

    Interesting. From the MSDN:

    Since I'm working in MFC, I don't get the wParam argument for my override (I'm handling NC painting in the "OnNcPaint" function). Any idea on how to get the handle to...
  6. Re: Calling default in OnNcPaint defore my painting paints over mine?

    Hmmm, that doesn't seem to be working. In looking at the bounding box for the update region, it looks like it's in client coords, it doesn't include the nc area. In testing (using ValidateRgn), the...
  7. [RESOLVED] Calling default in OnNcPaint defore my painting paints over mine?

    Okay, this is been bugging me for the past couple of days. I'm overriding OnNcPaint to do my own caption painting (in a dialog box). If I call "Default" before I do my painting, the default caption...
  8. Re: Slightly OT, Visual Studio 2012, and virtual desktops...

    No worries. I was just hoping that someone stumbled onto this before. I was using VS2010 up until yesterday, and hadn't run into this issue with Visual Studio. I have with other apps, but I had...
  9. Re: Slightly OT, Visual Studio 2012, and virtual desktops...

    Really, nobody runs a virtual desktop manager? Nobody convert to the dark side, from *NIX, to become a full time Windows developer? :)

    I don't know how I'd get along without my 9 desktops!
    ...
  10. Slightly OT, Visual Studio 2012, and virtual desktops...

    Hey all,

    Not really a MSVC++ technical question, but does anyone else run a virtual desktop manager? If so, does Visual Studio "follow" you when you switch desktops? I'm running Litestep, and...
  11. Replies
    19
    Views
    1,241

    Re: Modifying an existing array with a function

    Not exactly. You can kinda think of it as the vector being passed as a pointer to the vector itself (not the start of the data), if I understand your question. You still access the vector as if it...
  12. Replies
    19
    Views
    1,241

    Re: Modifying an existing array with a function

    You're not running out of memory, you're running out of stack space ("stack overflow"). The stack is limited (I forget the specific amount), and is usually a lot smaller then the heap.

    For large...
  13. Replies
    5
    Views
    3,261

    Re: about GET_X_LPARAM

    After 12 years, I hope the OP found it!

    Viggy
  14. Replies
    16
    Views
    949

    Re: I cannot print on an output file

    The function "Frequency" doesn't return anything. This:

    file2<<Frequency(alphabet[p], num, a) ;
    Is an error.

    Viggy
  15. Re: C struct as class member variable, zero "init" data in class constructor

    Are you compiling the file as a 'C' file or a 'C++' file?

    Viggy
  16. Replies
    6
    Views
    1,495

    Re: Very simple recursive algorithm

    And, DONE!

    Viggy
  17. Re: Why debug occasionally brings up disassembly rather than Windows files?

    It sounds like you don't have the debugging symbols for 'ntdll.dll' installed: http://msdn.microsoft.com/en-us/library/dbx3a6yc%28v=VS.71%29.aspx

    Viggy
  18. Replies
    2
    Views
    1,151

    Re: Transpose Matrix array manipulation

    The compiler is correct. "main" must return an integer:

    #include <iostream>

    int main()
    {
    std::cout << "Hello World!" << std::endl;
    }
    However, you do not need to provide the return value...
  19. Re: Rewriting a Win32 app using HINSTANCE to a Win32 console application

    And change calls to 'MessageBox' to instead write to the output stream ("cout").

    Viggy
  20. Replies
    4
    Views
    687

    Re: Linker Error

    C2512 Since you've provided a constructor that takes a parameter, you must provide a default constructor as well (a constructor taking no parameters). The compiler will not automatically create one...
  21. Re: How to write proper application simulation?

    What "simulator"? What "target application"? In general there are many ways to send/receive data between two applications. Just do a search for "Interprocess Communication".

    Viggy
  22. Re: How make line insteed item of menu?

    According to the MSDN, it should be:

    AppendMenu(menu_file, MF_SEPARATOR, 0, 0);
    Viggy
  23. Replies
    4
    Views
    964

    Re: You know you're getting old when...

    You go to CNN.com, and see an article about the first text message being sent 20 years ago!
  24. Replies
    8
    Views
    1,173

    Re: code in dot H files

    If the function is small, then there is the slight advantage that the compile can 'inline' the function. However, I highly doubt the compiler can inline a function 150 lines long.

    Viggy
  25. Replies
    9
    Views
    2,014

    Re: Java Accesss Bridge installation

    Perhaps the Java forum may have more answers. Installing Java and Java related libraries has nothing to do with C++.

    Viggy
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center