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.
DWORD m_dwCount;
This variable is shared by all objects of the CGraphDlg class...
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...
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...
If CTextView does not have OnFilePrint, and the other printing handlers and virtual functions, just copy them from CFinalTView, and change the code appropriately.
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...
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,...
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...
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, 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...
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.
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.
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...