Search:
Type: Posts; User: yooper
Search:
Search took 0.03 seconds.
-
Whether the OP does or someone else who stumbles onto this thread, what's wrong with posting my soluction? :)
-
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++ )...
-
December 10th, 2014, 12:09 PM
(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 (...
-
February 23rd, 2012, 03:58 PM
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...
-
February 23rd, 2012, 03:17 PM
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...
-
February 23rd, 2012, 03:01 PM
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...
-
February 23rd, 2012, 02:38 PM
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...
-
October 5th, 2010, 10:47 AM
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...
-
October 5th, 2010, 08:59 AM
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...
-
October 4th, 2010, 12:28 PM
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...
-
October 4th, 2010, 09:38 AM
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?...
-
November 11th, 2009, 12:22 PM
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...
-
November 11th, 2009, 11:24 AM
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...
-
November 10th, 2009, 11:29 AM
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...
-
November 9th, 2009, 02:52 PM
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...
-
July 16th, 2009, 01:19 PM
Sayed,
Here's some code that I use:
SCROLLBARINFO sbi;
memset(&sbi, 0, sizeof(SCROLLBARINFO));
sbi.cbSize = sizeof(SCROLLBARINFO);
...
-
November 25th, 2008, 03:48 PM
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...
-
November 24th, 2008, 04:02 PM
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;...
-
November 18th, 2008, 04:35 PM
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...
-
November 18th, 2008, 03:31 PM
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...
-
October 24th, 2008, 01:32 PM
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...
-
April 29th, 2008, 11:11 AM
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.
-
April 29th, 2008, 11:05 AM
Exactly. Make sure you do things in the proper order:
BOOL CMyDlgClass::OnInitDialog()
{
CDialog::OnInitDialog();
// After this, you can access your dialog's controls
...
-
April 28th, 2008, 01:31 PM
1. You can set it's "Visible" property to "False"
2. GetDlgItem(IDC_CHECK1)->ShowWindow(SW_HIDE);
-
April 25th, 2008, 09:42 AM
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
|
Click Here to Expand Forum to Full Width
|