Type: Posts; User: Buzzyous
Search took 0.07 seconds.
Actually, I realized something there is wrong
My OnPaint() function, at its start, already receives the pDC CDC with the two members m_hDC and m_hAttribDC different,without me having done...
Ok, I found it.
The problem is about selecting a font created for the monitor device context into de printing device context.
Sorry for the bothering, this is solved now
Thank you, I...
I could post it, but there is nothing apart the standard functions:
// TODO: Add your specialized code here and/or...
I did nothing, just used the native OnPrint, importing a CRect with the size given by CPrintInfo struct in onDraw if (pDC->IsPrinting()).
it is the first time I need to print something in visual...
Hi to all
Maybe this is a stupid question, but I looked around in internet and searched this forum for this problem. I didn't found anything free and useful
The fact is, I have an application...
April 21st, 2012, 04:47 PM
Yes, templates could work fine.
Thanks very much!
Sorry if my answer came late
April 20th, 2012, 08:25 PM
I made 2 years ago a custom control; it was a button, with extendend functionalities, and hexagonally shaped.
I made a CWnd derived class, and used it as a control, analazing the mouse events and...
April 20th, 2012, 08:13 PM
Hello to all.
I write you after many years, got rusty, even more than then, on inheritances.
I will pose a simplified version of the problem i have, to go straight to the point.
I have a base...
January 6th, 2010, 10:23 AM
You've been very clear. Thank you again, I will try something out of your suggestion.
January 6th, 2010, 02:12 AM
I viewed some of these, and found some interesting. Still reading, there are many articles. Thank you for the addressing.
But, you said the difficult part is to sample the audio; there are API...
January 5th, 2010, 12:10 PM
Hi to all.
I start by apologizing for my newbyosity in this field of c++, that is audio tracks. I understand, however, the principles behind sampling and sound recording issues in a computer.
December 19th, 2009, 03:26 AM
I understand. I didn't know SetCapture() works only if mouse button is pressed. I thing in Dialog boxes it works anyway, but CView, being a different, more complex "window structure", works...
December 18th, 2009, 03:13 PM
Hello to all.
I am developing a small mouse movement detector. It is an SDI app that does some stuff only based on mouse movement, regardless form its position or button flag.
To do so, I tried...
February 10th, 2009, 08:03 AM
You could save a rectangular bmp which is that occupied by the clock... When you need to refresh it, you can erase the clock background with the original image partial bitmap (overriding the CStatic...
February 9th, 2009, 06:45 PM
Of course I am not able, nor I intend, to beat standard containers. Anyway, the struct is just one part of the container I had in the app. The skeleton pointer is a multiple layer list, not just the...
February 9th, 2009, 05:53 PM
Interesting... But for this application I'm looking for direct access and control over pointers, without intermediates. I'll take what you say in account for another app I'm writing, however, where...
February 9th, 2009, 04:38 PM
Doesn't matter... Feels like I'll have to rewrite some code: not quite sure is what I shown the source of the leaks. Thank anyway, the help was really precious.
February 9th, 2009, 04:09 PM
I inserted many deb messages throughout the app.
Before my last post, the message in the debug weren't called, because I closed the app without catching properly WM_CLOSE messages, and so on. Now...
February 9th, 2009, 03:44 PM
I solved many issues, but still remain a problem; I got memory leaks for each object I allocate with new durinig the program. Even when destructor is called. So, I found out how to call destructors...
February 9th, 2009, 11:47 AM
Actually, to be very sure, I inserted in the destructor code an AfxMessageBox("Destructing") troubleshooting message... It is not shown, so I supposed destructors weren't called.
Moreover, if I...
February 9th, 2009, 10:43 AM
I defined PREMATURE_EXIT as -55. The invoker of the CDialog is a CWiew class.
Now, the CDialog has some children CWnd that has new allocated memory too. I wrote this:
//In the CDialog derived...
February 8th, 2009, 11:49 AM
I'm writing a Win application. In a dialog window the user has to insert some data. If these data refers to a bad, corrupted or mismatching file the application needs to close (after propting the...
February 8th, 2009, 11:10 AM
I built a pointer based class, that makes a lot of use of dynamic memory allocation with new. So I equipped the class with an appropriate destructor, that traces back all allocated objects and...
February 3rd, 2009, 09:48 AM
Nice, it works.
Thank you all, a lot!
February 3rd, 2009, 06:38 AM
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.