Search:
Type: Posts; User: MrViggy
Search:
Search took 0.13 seconds; generated 35 minute(s) ago.
-
June 25th, 2013, 03:25 PM
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:
...
-
June 25th, 2013, 03:02 PM
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...
-
June 25th, 2013, 11:18 AM
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!
...
-
June 24th, 2013, 11:38 AM
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...
-
June 24th, 2013, 10:55 AM
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...
-
June 24th, 2013, 10:37 AM
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...
-
June 20th, 2013, 04:03 PM
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...
-
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...
-
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!
...
-
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...
-
March 27th, 2013, 10:58 AM
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...
-
March 26th, 2013, 02:56 PM
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...
-
March 1st, 2013, 05:30 PM
After 12 years, I hope the OP found it!
Viggy
-
February 12th, 2013, 05:40 PM
The function "Frequency" doesn't return anything. This:
file2<<Frequency(alphabet[p], num, a) ;
Is an error.
Viggy
-
February 8th, 2013, 05:39 PM
Are you compiling the file as a 'C' file or a 'C++' file?
Viggy
-
January 18th, 2013, 03:27 PM
-
January 15th, 2013, 04:47 PM
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
-
January 3rd, 2013, 03:36 PM
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...
-
December 20th, 2012, 04:43 PM
And change calls to 'MessageBox' to instead write to the output stream ("cout").
Viggy
-
December 10th, 2012, 03:29 PM
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...
-
December 10th, 2012, 12:24 PM
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
-
December 3rd, 2012, 01:17 PM
According to the MSDN, it should be:
AppendMenu(menu_file, MF_SEPARATOR, 0, 0);
Viggy
-
December 3rd, 2012, 01:13 PM
You go to CNN.com, and see an article about the first text message being sent 20 years ago!
-
November 7th, 2012, 03:01 PM
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
-
October 4th, 2012, 10:40 AM
Perhaps the Java forum may have more answers. Installing Java and Java related libraries has nothing to do with C++.
Viggy
|
Click Here to Expand Forum to Full Width
|