Type: Posts; User: sstofka
Search took 0.06 seconds.
July 25th, 2004, 11:47 PM
If it is read only, i.e. no user interaction, then your best choice might be a CView or CScrollView. Then you have a fine degree of control and can simply use DrawText for "normal" paragrahs and...
You can test whether there is another CGraphDlg active in the app by putting a static member in the CGraphDlg class.
This variable is shared by all objects of the CGraphDlg class...
June 12th, 2004, 09:11 PM
I created a lite control that is to be used in IE as the only object on the page. I get the mouse events and repaint fine but the control does not get any key events, either WM_KEYDOWN or WM_CHAR. ...
I thought the Len() fxn would check for that the same way strlen/_tcslen does in C. I needed the length for other parsing/string extraction in the function so I thought I might as well get it at the...
That was it Bill. Without criteria, there is 1 entry far down in the datasheet. Thanks.
I still don't understand how the function returns a NULL. The default return value of 0 for the function...
I'm returning an Integer from a VBA function in a global module to a query in Access 2000. That's fine. But as soon as I try to give the returning Integer a criteria like >0 or <>0, the resulting...
I don't have WinRAR so I can't unzip it and I'm not going to download a program just to unzip one file. If you can .zip the files, fine.
If CTextView does not have OnFilePrint, and the other printing handlers and virtual functions, just copy them from CFinalTView, and change the code appropriately.
If you't call AddDocTemplate()...
I don't see where you have called AddDocTemplate() after you have declared your text template in InitInstance(). That may be the problem.
Also, your member tab template looks exactly like the...
April 25th, 2004, 03:15 PM
I didn't look at your code for your vertex class CMS3DVertex but it is derived from CObject so write a Serialize fxn for the class.
Then at the end of your Document's Serialize fxn...
April 25th, 2004, 10:51 AM
Regardless of how you implement it, you cannot catch an arrow keys with a WM_CHAR message. Instead, catch WM_KEYDOWN messages for arrow keys.
You can PreTranslateMessage in the FormView or have all...
April 11th, 2004, 11:03 AM
Interesting problem and you seem to have solved most of your difficulty.
If none of these strings are modified, you might try another approach. Depending on what your program does with the data,...
April 10th, 2004, 06:58 PM
Whatever printing code you are using, don't call EndPage() which will send a form feed to your dot matrix printer.
April 10th, 2004, 06:45 PM
I don't understand why you wouldn't use an array that has been designed to handle string arrays, CStringArray.
An alternative would be vector<string>
April 3rd, 2004, 09:41 PM
In the view's OnPreparePrinting(), call up your option dialog first. If the user doesn't cancel the option dialog, then call DoPreparePrinting(). Set the members of CPrintInfo* pInfo if you don't...
March 24th, 2004, 11:46 PM
CDialog stores the parent wnd pointer in m_pParentWnd. If it is NULL, the default argument, then CDialog simply calls AfxGetMainWnd() to get a pointer, so you could do the same.
Also, unless the...
March 23rd, 2004, 11:21 AM
"Notify.wav" is a beep sound. It's in the Windows\Media directory.
Include the library file
#pragma comment(lib, _T("winmm.lib"))
Then use PlaySound().
You can use...
March 23rd, 2004, 10:55 AM
Also, if the variable is truly global, i.e. meant to be used by all the classes in the app, then have a fxn in your app class like getBuffer() which will return a pointer or a const pointer to the...
March 20th, 2004, 10:45 AM
You can take advantage of serialization in a dialog based app by having a CFormView, which wraps a dialog in a view class with an associated doc. The form view will be your main dialog.
March 17th, 2004, 11:10 PM
You have set the size of the array...
Then you add a new element (I suppose that is it - your code doesn't show the declaration of "tempSysConfig")
March 17th, 2004, 10:46 PM
Look at both error messages. The compiler is telling you that the funciton signatures are different.
In the first error message (Set Cursor)0.
0, it is BOOL and bool as the return type - two...
March 17th, 2004, 10:30 PM
What GStercken calls a mix-in class might also be called a helper class. Try to put whatever functionality you have in SDialog that would also be helpful in your CPropertyPage derived class.
March 13th, 2004, 10:26 AM
Use a scrolling view, not a CView
//Set up your page, scroll sizes in OnInitialUpdate
March 13th, 2004, 09:03 AM
Normally a view is resized by getting the parent of the view and calling MoveWindow(). The child view should resize with the parent.
If this is an MDI app, then you will need to get the MDI...
March 11th, 2004, 10:02 PM
COleVariant is a class that wraps the VARIANT type (VARIANT structure) used in Visual Basic and VBA used by Microsoft Office apps like Excel, Access, Word. It makes it easier - less coding, more...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.