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

Search:

Type: Posts; User: yooper

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Retrieving Arabic characters using GetWindowText?

    Whether the OP does or someone else who stumbles onto this thread, what's wrong with posting my soluction? :)
  2. Re: Retrieving Arabic characters using GetWindowText?

    You have to use a loop and accumulate the lines one at a time. Here's what works for me:


    CString text = "";

    int lines = m_cEdit.GetLineCount();
    for ( int i = 0; i < lines; i++ )...
  3. Replies
    24
    Views
    9,821

    Re: ShellExecute crashes Dev Studio 2008 SP 1

    (Two years later...)

    I was having this problem, too, but I solved it by making the following change.

    From this:

    CFile htmFile;
    CString strFileName = _T("C:\\Temp\\TempHTML.htm");

    if (...
  4. Replies
    4
    Views
    1,129

    Re: Odd CListCtrl behavior selecting items

    I didn't think "Focused" was what I was testing for. It is not a single-selection list, so more than one can be selected, but only one can be focused, right? I'm concerned about the selection...
  5. Replies
    4
    Views
    1,129

    Re: Odd CListCtrl behavior selecting items

    Thanks for your quick reply!

    On the second click, I expect uOldState == (LVIS_SELECTED & LVIS_FOCUSED). Actually, I'm surprised I get interrupted at all. Since the state is not actually...
  6. Replies
    4
    Views
    1,129

    Odd CListCtrl behavior selecting items

    I have a report-style CListCtrl, and I receive LVN_ITEMCHANGED notifications. The odd behavior that I am noticing is as follows:

    - Select an item in the list: receive uChanged's LVIF_STATE is...
  7. Replies
    5
    Views
    3,380

    Re: ListView Item Selection-Problem

    I have a related question:

    When I click on an item in my CListCtrl, I get the LVN_ITEMCHANGED notifications. However, if I click on the same item twice (not double-click), I actually get a state...
  8. Replies
    14
    Views
    2,887

    Re: Checking Existence of Drive

    Thanks for the suggestion. I tried it, but unfortunately, it didn't do the trick. I've attached a picture of what "My Computer" shows when the CD/DVD drive is virtually powered off. When it's like...
  9. Replies
    14
    Views
    2,887

    Re: Checking Existence of Drive

    I guess I should ask the question a different way: If Windows has powered down a device (CD/DVD drive), and it does not appear in the GetLogicalDrives output, how does Windows know that the drive is...
  10. Replies
    14
    Views
    2,887

    Re: Checking Existence of Drive

    Thanks for your quick response. But I'm confused. If the drive is internal, then it is available. It is not physically powered off. There is no "on/off" switch for it.

    Does Windows 7 provide a...
  11. Replies
    14
    Views
    2,887

    Re: Checking Existence of Drive

    Has anyone else noticed that (on Windows 7, especially) drives that are powered down, even internal drives, don't get reported by GetLogicalDrives? Is this to be expected? Or am I missing something?...
  12. Replies
    11
    Views
    9,314

    Re: When is ODS_SELECTED state?

    Igor,

    Thank you very much for your time and efforts. Your help is greatly appreciated! :)

    Once I get around to implementing this new subclass, I'll come back to the original article and find a...
  13. Replies
    11
    Views
    9,314

    Re: When is ODS_SELECTED state?

    I understand. Unfortunately, when you tell Windows that you want the button to be an "Owner Drawn" button, it loses any and all knowledge of how that button was intended to be used. If you don't make...
  14. Replies
    11
    Views
    9,314

    Re: When is ODS_SELECTED state?

    Thank you for your reply, Igor.

    I have decided to subclass the CColorButton class and make a CColorRadio class. In here, the only thing I want to do is override "OnLButtonDown" (or maybe...
  15. Replies
    11
    Views
    9,314

    Re: When is ODS_SELECTED state?

    I am using one of the Colored Button classes that I found here on CodeGuru.com (ColorButton.cpp & .h written by Marius Bancila (m*******@yahoo.com) Copyright © 2004). I have made a few minor...
  16. Replies
    4
    Views
    1,867

    Re: ScrollBar Presence in ListBox ?

    Sayed,

    Here's some code that I use:


    SCROLLBARINFO sbi;
    memset(&sbi, 0, sizeof(SCROLLBARINFO));
    sbi.cbSize = sizeof(SCROLLBARINFO);

    ...
  17. Found it!

    Hi, John.

    First of all, thanks for your replies! You got me thinking about this, and that's always good. :rolleyes:

    I discovered what the problem was by actually debugging a related problem in...
  18. Re: Question About Setting Text Of A SliderCtrl ToolTip

    John,

    Thanks for your reply! I'm not sure how much you want to see, but here is the initialization that is failing:


    // Defined in the class in the .h file

    CToolTipCtrl m_TrackToolTip;...
  19. Re: Question About Setting Text Of A SliderCtrl ToolTip

    John,

    It's been a while, but might you be willing to answer a question regarding this issue?

    I've looked at your sample, and incorporated it into a couple of my projects. In one, I have it...
  20. Replies
    8
    Views
    4,046

    Re: tool tip not shown

    ahmadali,

    One thing that I have noticed in my development is that if there is a window that contains your dialog items, and it is higher up in the tab order, you may not see your Tool Tips.

    For...
  21. Re: application failed to initialize properly (0xc0150002)

    Hi, Kirants.

    I'm not sure if you're looking at this thread any more, but I'm getting the same problem as stated above. In answer to your questions:

    I'm building on WinXP-SP3, using VS 2005...
  22. Replies
    10
    Views
    3,347

    Re: [RESOLVED] Creating Tabbed Dialogboxes

    You have two choices:

    1. Modify the "OnOK" override routine

    2. Change the ID of the button to something other than IDOK, and then write an "OnButtonClick" routine for it.
  23. Replies
    5
    Views
    4,963

    Re: How to make a checkbox invisible

    Exactly. Make sure you do things in the proper order:


    BOOL CMyDlgClass::OnInitDialog()
    {
    CDialog::OnInitDialog();
    // After this, you can access your dialog's controls

    ...
  24. Replies
    5
    Views
    4,963

    Re: How to make a checkbox invisible

    1. You can set it's "Visible" property to "False"
    2. GetDlgItem(IDC_CHECK1)->ShowWindow(SW_HIDE);
  25. Replies
    2
    Views
    926

    Re: Create a (2nd) CFrameWnd with a view

    Padan,

    Please post your solution here, or at least give some clues to the community (myself included) as to how you solved it. Thanks!!!

    Dave
Results 1 to 25 of 99
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured