Click here to Skip to main content
15,914,417 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionXML Data in Tree control Pin
hellogany12-Sep-09 5:19
hellogany12-Sep-09 5:19 
AnswerRe: XML Data in Tree control Pin
hellogany13-Sep-09 21:08
hellogany13-Sep-09 21:08 
AnswerRe: XML Data in Tree control Pin
Richard MacCutchan13-Sep-09 23:38
mveRichard MacCutchan13-Sep-09 23:38 
QuestionIs it possible to protect a folder in windows using Visual C++ Pin
Member 211485212-Sep-09 4:41
Member 211485212-Sep-09 4:41 
AnswerRe: Is it possible to protect a folder in windows using Visual C++ Pin
CPallini12-Sep-09 5:25
mveCPallini12-Sep-09 5:25 
Questionhow to show static control on picture control in dialog box Pin
pinky888412-Sep-09 1:05
pinky888412-Sep-09 1:05 
AnswerRe: how to show static control on picture control in dialog box Pin
«_Superman_»13-Sep-09 18:25
professional«_Superman_»13-Sep-09 18:25 
Questionhow to set background color of context menu in vc++ Pin
pinky888412-Sep-09 1:03
pinky888412-Sep-09 1:03 
QuestionReducing Clientarea for a Dialog...(ie increasing Non client Area) Pin
kumar sanghvi11-Sep-09 21:33
kumar sanghvi11-Sep-09 21:33 
Questionupdating the layered window Pin
theCPkid11-Sep-09 21:27
theCPkid11-Sep-09 21:27 
QuestionResource Pin
kk.tvm11-Sep-09 18:50
kk.tvm11-Sep-09 18:50 
AnswerRe: Resource Pin
Shivanand Gupta11-Sep-09 20:02
Shivanand Gupta11-Sep-09 20:02 
AnswerRe: Resource Pin
«_Superman_»11-Sep-09 20:06
professional«_Superman_»11-Sep-09 20:06 
QuestionUndelete a File in NTFS Pin
venkatglasses11-Sep-09 18:12
venkatglasses11-Sep-09 18:12 
AnswerRe: Undelete a File in NTFS Pin
Richard Andrew x6411-Sep-09 18:31
professionalRichard Andrew x6411-Sep-09 18:31 
AnswerRe: Undelete a File in NTFS Pin
«_Superman_»11-Sep-09 20:08
professional«_Superman_»11-Sep-09 20:08 
QuestionHow to decide if GPRS service is down in a C++ application (UDP socket) Pin
nahitan11-Sep-09 16:09
nahitan11-Sep-09 16:09 
QuestionRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
Moak12-Sep-09 3:54
Moak12-Sep-09 3:54 
AnswerRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
nahitan12-Sep-09 18:16
nahitan12-Sep-09 18:16 
GeneralRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
Moak12-Sep-09 22:28
Moak12-Sep-09 22:28 
QuestionProblem with Tooltips for CTabCtrl [modified] Pin
Bob Blean11-Sep-09 14:43
Bob Blean11-Sep-09 14:43 
I am having trouble getting tooltips right for CTabCtrl when it has enough tabs that the spinner is up to scroll through the tabs.

If I use CTabCtrl::SetToolTips(), then a tab's tooltip stays with it, even when the tabs scroll (good). The problem is that it seems to take my tool ID (1, 2, ... N) as an index into the tabs -- and zero is not a valid ID (asserts in MFC), so I cannot have a tooltip for the first tab.

Alternatively, I can do the tooltips on my own -- the problem there is that I do not know how to tell when the tabs scroll so I can update the tooltip control's rects. WM_HSCROLL works for the spinner, but not if the scrolling happened because of a right- or left-arrow key.

I could set to supply the tooltip text each time, and on each request compare the cursor postion to the tab rect's, but that seems like a heavyweight kludge. (I could also go to multi-line tabs, but do not want to do that.)

So, what is the correct way to do it?

TIA,
Bob

modified on Sunday, September 13, 2009 3:41 PM

QuestionHow to use a list ctrl to select an item Pin
Chiman111-Sep-09 10:19
Chiman111-Sep-09 10:19 
AnswerRe: How to use a list ctrl to select an item Pin
David Crow11-Sep-09 14:25
David Crow11-Sep-09 14:25 
AnswerRe: How to use a list ctrl to select an item Pin
«_Superman_»11-Sep-09 20:22
professional«_Superman_»11-Sep-09 20:22 
QuestionTransparent Bitmaps Pin
kylur11-Sep-09 8:48
kylur11-Sep-09 8:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.