Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: sstofka

Page 1 of 41 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    470

    If it is read only, i.e. no user interaction,...

    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...
  2. You can test whether there is another CGraphDlg...

    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...
  3. Thread: ATL key events

    by sstofka
    Replies
    1
    Views
    524

    ATL key events

    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. ...
  4. Replies
    4
    Views
    692

    I thought the Len() fxn would check for that the...

    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...
  5. Replies
    4
    Views
    692

    That was it Bill. Without criteria, there is 1...

    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...
  6. Replies
    4
    Views
    692

    Function return value to Access query

    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...
  7. Replies
    9
    Views
    456

    I don't have WinRAR so I can't unzip it and I'm...

    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.

    Steve
  8. Replies
    9
    Views
    456

    If CTextView does not have OnFilePrint, and the...

    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()...
  9. Replies
    9
    Views
    456

    I don't see where you have called...

    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...
  10. Replies
    12
    Views
    1,365

    I didn't look at your code for your vertex class...

    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...
  11. Regardless of how you implement it, you cannot...

    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...
  12. Interesting problem and you seem to have solved...

    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,...
  13. Replies
    1
    Views
    404

    Whatever printing code you are using, don't call...

    Whatever printing code you are using, don't call EndPage() which will send a form feed to your dot matrix printer.

    Steve
  14. I don't understand why you wouldn't use an array...

    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>

    Steve
  15. In the view's OnPreparePrinting(), call up your...

    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...
  16. Replies
    9
    Views
    2,544

    CDialog stores the parent wnd pointer in...

    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...
  17. Replies
    2
    Views
    359

    "Notify.wav" is a beep sound. It's in the...

    "Notify.wav" is a beep sound. It's in the Windows\Media directory.

    #include <mmsystem.h>

    Include the library file
    #pragma comment(lib, _T("winmm.lib"))

    Then use PlaySound().
    You can use...
  18. Replies
    5
    Views
    559

    Also, if the variable is truly global, i.e. meant...

    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...
  19. You can take advantage of serialization in a...

    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.

    For more...
  20. Replies
    2
    Views
    498

    You have set the size of the array......

    You have set the size of the array...
    m_aryVals.SetSize(nSysConfigDefault);

    Then you add a new element (I suppose that is it - your code doesn't show the declaration of "tempSysConfig")
    ...
  21. Replies
    2
    Views
    478

    Look at both error messages. The compiler is...

    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...
  22. Replies
    9
    Views
    2,544

    What GStercken calls a mix-in class might also be...

    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.

    Even...
  23. Replies
    2
    Views
    501

    Use a scrolling view, not a CView //Set up...

    Use a scrolling view, not a CView

    //Set up your page, scroll sizes in OnInitialUpdate




    void CScrollTextView::OnInitialUpdate()
    {
    CScrollView::OnInitialUpdate();
  24. Replies
    1
    Views
    705

    Normally a view is resized by getting the parent...

    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...
  25. COleVariant is a class that wraps the VARIANT...

    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...
Results 1 to 25 of 1002
Page 1 of 41 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center