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

Search:

Type: Posts; User: mattcj

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    666

    Re: The use of "delete"

    Only use delete on the memory that you have allocated (object = new Whatever;) or where it is documented to do so. You are not allocating any memory with your call to GetDlgItem. You are just...
  2. Re: Found logic error in C++ , check this out people :

    You may find it silly, but I can't imagine why you'd actually want to design something this way. If this is the best solution, then it's time to go back to the drawing board.
  3. Replies
    6
    Views
    849

    Re: OnCancel() Dialog Box?

    I would do the validation when they're ready to close the dialog instead of when the control loses focus. That way, if they're hitting cancel, you don't need to do any validation... you just close.
  4. Re: How do I remove the context help button from a wizard property sheet?

    CWnd* helpButton = GetDescendantWindow(IDHELP);

    if (helpButton)
    {
    helpButton->ShowWindow(SW_HIDE);
    }
  5. Thread: Wizards buttons

    by mattcj
    Replies
    1
    Views
    621

    Re: Wizards buttons

    You can't have a Next and Finish button on the same page. It's either one or the other. Take out PSWIZB_NEXT and you'll get a disabled Finish button.
  6. Thread: Radio Buttons

    by mattcj
    Replies
    16
    Views
    1,568

    Re: Radio Buttons

    In your rc file, give each radio button the BS_AUTORADIOBUTTON style. Then you don't have to write a lot of cumbersome code to unselect one radio button after selecting another.
  7. Re: Will MFC, ATL, COM will disappear and .NET is the new development platform ?

    Just look at the amount of posts for Visual C++ in this forum compared to C# and .net. Until those numbers start changing, I wouldn't worry about it going away.
  8. Replies
    5
    Views
    723

    Re: multiple inheritance

    Time to redesign!
  9. Replies
    5
    Views
    11,686

    LNK1201 error writing to program database

    Got a strange linking error here that I've never seen before.

    LINK : fatal error LNK1201: error writing to program database
    "E:\st\ST\Debug\cmsAppDB.pdb"; check for insufficient disk space
    ...
  10. Replies
    11
    Views
    10,327

    Re: Changing text in title bar

    BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
    {
    // Get rid of Untitled in title bar
    cs.style &= ~(LONG) FWS_ADDTOTITLE;

    if( !CFrameWnd::PreCreateWindow(cs) ) {
    return FALSE;...
  11. Replies
    2
    Views
    591

    Re: List Control notifications

    Never mind... I figured it out. I'm actally looking for an LVN_ITEMCHANGED notification. The reason I wasn't getting the LVN_ODSTATECHANGED is because it's not an ownerdrawn control. Whoops.
  12. Replies
    2
    Views
    591

    List Control notifications

    Does anyone know how the LVN_ODSTATECHANGED notification is used or when this notification gets sent. I thought that this notification was sent when the state of one the items in the list control...
  13. Replies
    4
    Views
    1,117

    Re: CListCtrl Question

    Thanks for the reply... I'm not quite sure I understand though. Can you explain a little further about subclassing the control?
  14. Replies
    4
    Views
    1,117

    CListCtrl Question

    I am experimenting with a CListCtrl class. Through AppWizard, I create a dialog based app and also created a new class which inherits from CListCtrl. I then used Resource editor to add a list...
  15. Replies
    6
    Views
    1,180

    Re: App Wizard Genereated Code

    Thanks for the reply... but why is that code generated in the first place? Take that code out or comment out that code and everything seems to run normally. So why is it generated in the first...
  16. Replies
    6
    Views
    1,180

    App Wizard Genereated Code

    App Wizard will generate the following code in .cpp files.

    #ifdef _DEBUG
    #undef THIS_FILE
    static char THIS_FILE[] = __FILE__;
    #endif



    Does anyone out there know what this code does? MSDN...
  17. Replies
    5
    Views
    765

    Re: Dialog bigger than the screen

    Buy bigger screens :-)
  18. Thread: grid controls

    by mattcj
    Replies
    9
    Views
    1,062

    Re: grid controls

    The application I work on at my job uses Far Point controls and another 3rd party vendor which makes Widget controls. Believe me, all the third party controls we use stink... I wish we were using...
  19. Re: URGENT: how to speed-up display of child controls

    Put the SetRedraw calls on either side of the for loop.


    SetRedraw(FALSE);
    for (whatever)
    {
    }
    SetRedraw(TRUE);
  20. Thread: MoveNext()

    by mattcj
    Replies
    9
    Views
    957

    Re: MoveNext()

    If you know for sure that an exception is being thrown, then it must not be of type CException. Put another catch below that one:

    catch (...) /* this is to catch everything not already caught*/...
  21. Thread: Message box

    by mattcj
    Replies
    7
    Views
    1,078

    Re: Message box

    You'd be better of just making the dialog yourself. Less of a hassle.
  22. Replies
    4
    Views
    715

    Re: using new operator

    Use a list (i.e. CList), instead... then who cares how many elements you have in the list.
  23. Replies
    4
    Views
    693

    Re: MFC objects and Worker thread bussiness..

    Pass the handle of the window to the new thread (the m_hWnd member). Then use the static CWnd::FromHandle method to "recreate" your CWnd in the worker thread passing it the handle of your window.
  24. Replies
    1
    Views
    535

    Re: Installing my program...

    Buy InstallShield.
  25. Replies
    4
    Views
    615

    Re: Writing a GUI app with database access...

    If they told you not to use C++, then they probably don't know how to use it themselves. VB or Java... blah!
Results 1 to 25 of 26
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured