Search:
Type: Posts; User: Jay Tautges
Search:
Search took 0.06 seconds.
-
September 18th, 2007, 11:46 PM
What Arjay says is right, but the return clause should go outside of the for loop. ;)
And I'd check out the if/else clause within the for loop. What would happen if y.Equals(x) turned out to be...
-
September 16th, 2007, 05:35 PM
One way to detect a null Date/Time database field is to wrap a try, catch clause around a simple use of the field, and see what happens.
...
// Read dataRow from database
try
{
// We...
-
Hello gurus,
Back when I used MFC and the Dao classes I would use a static array of table names, field names and types and from there I could easily create or verify an Access database. Those...
-
February 22nd, 2006, 02:18 AM
Thanks,
UserPaint looks like what I was missing.
-
February 20th, 2006, 01:57 PM
Hello everyone,
Personalizing the look of controls is something I like to do - so I'm trying it with the TabControl in my program. I've set the control's DrawMode to OwnerDrawFixed, and have...
-
February 19th, 2006, 07:49 PM
You could use the COleDateTime and it's ParseDateTime function to parse your text. If parsed successfully use the GetMonth/Day/Year/etc functions to put together your time_t variable.
Jay
-
June 19th, 2005, 11:55 PM
Ok, I thought that would solve the problem. I've reproduced the problem where a CArray<TYPE> value is returned and the error below is produced.
error C2558: class 'CArray<TYPE>' : no copy...
-
June 19th, 2005, 11:08 PM
The copy constructor is a constructor that takes a single parameter of the class's type. That parameter is a ref to the class. I declare them const also.
class CSomeClass {
CSomeClass();...
-
June 19th, 2005, 06:00 PM
I think we should use undocumented elements. MS doesn't control us. You just have to be aware of what you're doing, and be ready to accept the consequences.
If the scientists of the past didn't...
-
June 19th, 2005, 05:45 PM
In the case of a progress bar, there is the message PBM_SETPOS to set the position of the bar. It's documented as redrawing the control, to force an immediate repainting. It's purpose is to update...
-
June 19th, 2005, 05:27 PM
The CIRMapDoc class is probably not defined for the CIRMapView class. Put it's header in the source code before the #include of the view.
#include "stdafx.h"
#include "IRMapDoc.h"
#include...
-
I've haven't tried it myself but I've seen the class style CS_NOCLOSE recommended. It might only disable that X in the upper right corner. If that doesn't do it there is the option of removing the...
-
I wouldn't read the entire file if its size is in the megabytes. Instead make an index at the the start of the file with offsets to each block of data. Or make up a fixed format so you can easily...
-
That function doesn't seem like part of the fraction class. If it were it's prototype might look like this:
class fraction {
...
bool operator==(const fraction& f) const;
...
};
Then to...
-
A list control can only have a fixed number of columns. That can be changed dynamically at any time, but it would apply to all rows which isn't what you want.
There is a solution though. Make...
-
In OnSize() when you resize the property sheet you're using screen coordinates. Make a call to ScreenToClient(cr) after GetWindowRect to make the coords relative to the parent. But that will only...
-
What are the forms and frames? My first guess is CFormViews with some kind of window within the dialog template.
Exactly what you're looking to do, I'm not sure myself. The way you describe your...
-
Using VC++ and MFC you're going to have to do all the sizeing/movement coding yourself. Calls to MoveWindow() for the property sheet and pages.
You might consider using C# and the Windows forms...
-
That's because two different functions are being called. In the doc it's this one and in the view it's this .
In the CView to force a use of the first function, put "::" right in front of the...
-
Why are you forcing a repainting in OnVScroll - the list should handle this automatically. All you have to do is reposition that comboBox to be above a specific subitem.
If you do want to call...
-
That's great your code works! But JohnCz was right - I overlooked HitTest. The while() loop that iterates from the handle of GetFirstVisibleItem() to the end of the tree can be replaced with a call...
-
There are button styles BS_PUSHBUTTON and BS_PUSHLIKE, but I doubt taking those away would help. So the next thing I thought of was what actions cause the button to be pushed - the mouse click,...
-
The throw() part of the function prototype just says what type of exception is to be expected.
throw() - No exceptions
throw(...) - Any kind of exception
throw(type) - An exception of the type...
-
I'm wondering why you aren't using CRect. It converts itself into a RECT when required.
But if you want to make your own class - it's up to you. Put a RECT inside your class, and do this.
...
-
Once you touch a radio button, it will be in focus. I guess you want the text from the last edit control being edited. Keep track of that by watching for EN_SETFOCUS.
|
Click Here to Expand Forum to Full Width
|