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

Search:

Type: Posts; User: VictorN

Page 1 of 80 1 2 3 4

Search: Search took 1.87 seconds.

  1. Re: [RESOLVED] File transfer through MODEM and MSCOMM

    No, I cannot help you with using MSCOMM.
    MSCOMM worked well in time of Win16.

    But then in a real world beginning of Win32 it just sucks. :(
  2. Re: [RESOLVED] File transfer through MODEM and MSCOMM

    then it's time to learn the modern technologies! ;)
  3. Re: [RESOLVED] File transfer through MODEM and MSCOMM

    Are you also new to coding in VB6?
    And why not using VB.Net or C#?
  4. Re: File transfer through MODEM and MSCOMM

    Why do you need it?
  5. Replies
    11
    Views
    266

    Re: Can't change CTreeCtrl item image

    These article/discussions may be useful:
    https://stackoverflow.com/questions/1164868/how-to-get-size-of-check-and-gap-in-check-box...
  6. Replies
    11
    Views
    266

    Re: Can't change CTreeCtrl item image

    If you "need to show the icon 32x32" then do
    m_imglist.Create(32, 32, ILC_COLOR32,1, 1);
    ...
    ::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_UnCheck_ICO),
    IMAGE_ICON, 32, 32,...
  7. Replies
    11
    Views
    266

    Re: Can't change CTreeCtrl item image

    You have to add a new custom (21x21) images to your icons.
    Then load them using
    ::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_UnCheck_ICO),
    IMAGE_ICON, 21, 21, LR_DEFAULTCOLOR));
  8. Replies
    11
    Views
    266

    Re: Can't change CTreeCtrl item image

    The simplest way would be "resize" your icons (or just create the icons of the size 21x21) in the image editor. And then use these 21x21 icons.
  9. Replies
    11
    Views
    266

    Re: Can't change CTreeCtrl item image

    Why do you pass 2 as the index in the image list? Your image list has the size 2, thus the only valid indexes are 0 and 1.

    BTW, using SetItemImage method looks a little simpler that SetItem. ;)
  10. Replies
    14
    Views
    348

    Re: My simple vector crashes

    Run the "programs in Debug mode" is not the same as debug the program!
    Have a look at
    https://docs.microsoft.com/en-us/visualstudio/debugger/debugging-absolute-beginners?view=vs-2019
  11. Replies
    14
    Views
    348

    Re: My simple vector crashes

    Why presumably ?
    didn't you debug your code to see the exact place of the "crash"? :confused:
  12. Replies
    4
    Views
    143

    Re: Reopen the Dialog.

    What if you add (the block in blue)?

    if (m_pResultAnalysisDialog)
    {
    WINDOWPLACEMENT windowPlace;
    windowPlace.length = sizeof(WINDOWPLACEMENT);
    BOOL bOk =...
  13. Re: How to generate a condition (true or false) based on possibilities?

    Perhaps, this one will work?...
  14. Replies
    11
    Views
    2,733

    Re: variable visualisation in MSVC2019 debugger

    Very simple: you should ask your questions directly in the forum posts, not in some attachments that have to be downloaded just to read what you meant.
    The same is valid for the (not too long) code...
  15. Replies
    14
    Views
    390

    Re: MFC CListCtrl change checkbox color

    Then you nave to implement owner or custom drawing!
    some examples:
    http://codexpert.ro/blog/2013/02/22/custom-draw-vs-owner-draw-controls/
    https://www.codeproject.com/KB/list/#Custom+Draw
  16. Replies
    14
    Views
    390

    Re: MFC CListCtrl change checkbox color

    Did you try using CListCtrl::SetBkColor? Does it work or not?
  17. Re: How to return the value of a const char* method

    std::string myString = getOwnerSerNoString();
  18. Replies
    14
    Views
    390

    Re: MFC CListCtrl change checkbox color

    CListCtrl already has the methods to set the background ( https://docs.microsoft.com/en-us/cpp/mfc/reference/clistctrl-class?view=msvc-160#setbkcolor ) and text colors. So you don't need to handle...
  19. Replies
    14
    Views
    390

    Re: MFC CListCtrl change checkbox color

    CListCtrl or CListBox?
    The CTLCOLOR_LISTBOX belongs to the CListBox class (ListBox control)
  20. Re: Using datagridview AdjustCellBorderStyle function to change border color

    [moved from Visual C++ Programming Forum]
  21. Re: Using datagridview AdjustCellBorderStyle function to change border color

    The code you have posted has nothing to do with the native C++.
    It looks like the managed code.

    So I move this thread to the most appropriate Forum.
  22. Replies
    25
    Views
    883

    Re: Excel Automation Headaches

    Why "exit(0)"? Why "_exit()"? :confused:
    Using either of these in MFC application never was a good idea! And it is still a bad idea now!
  23. Replies
    25
    Views
    883

    Re: Excel Automation Headaches

    Then have a look at the post#17
  24. Replies
    5
    Views
    495

    Re: Closing a Dialog Box

    And does this code work?
  25. Replies
    25
    Views
    883

    Re: Excel Automation Headaches

    Then try the option "... from registry..." (sorry, i currently do not have any VS on my notebook, therefore cannot be more precise)
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)