Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: making simple DVD Player using API Pin
Mark Salsbery30-Jan-07 7:18
Mark Salsbery30-Jan-07 7:18 
NewsRe: making simple DVD Player using API [modified] Pin
Khoramdin30-Jan-07 7:31
Khoramdin30-Jan-07 7:31 
GeneralRe: making simple DVD Player using API Pin
Mark Salsbery30-Jan-07 12:11
Mark Salsbery30-Jan-07 12:11 
GeneralRe: making simple DVD Player using API Pin
Khoramdin31-Jan-07 8:20
Khoramdin31-Jan-07 8:20 
GeneralRe: making simple DVD Player using API Pin
Mark Salsbery31-Jan-07 10:23
Mark Salsbery31-Jan-07 10:23 
GeneralRe: making simple DVD Player using API Pin
Mark Salsbery31-Jan-07 11:31
Mark Salsbery31-Jan-07 11:31 
AnswerRe: making simple DVD Player using API Pin
Khoramdin31-Jan-07 17:54
Khoramdin31-Jan-07 17:54 
QuestionCTreeCtrl question, selecting/unselecting Pin
Maximilien29-Jan-07 10:11
Maximilien29-Jan-07 10:11 
( with VC6, MFC, and using the CMultiTree class from the CodeGuru site which support multiselection )

I have a large-ish complex tree hierarchy. Each leaf item in the tree has pointer to its corresponding "object".

Each of those object knows when it's selected or not; i.e. I can select objects in other UI parts of the application, and the selection must be reflected in the tree.

Now, I will loop everything to do a SetItemState( hItem, 0, TVIS_SELECTED ); on all items to deselect them. followed by another SetItemState( hItem, TVIS_SELECTED, TVIS_SELECTED ); to actually select the items.

This is not very effective.

I'm looking for better suggestions.

I've been trying to store each object's HTREEITEM item in the object itself to be able to change the state directly on the items. but that means the Tree must be known ( in some fashion ) to others unrelated places in the software.

I also tried to completly "override" the tree selection mechanism and keep it "external" to the tree itself, and use CustomDraw ( NM_CUSTOMDRAW ) on the tree to manage the selected state of the objects, but that causes other kind of side effects, mostly bad refresh and flickering and some selection management issues.

Any other ideas ?

Thanks

M.




Maximilien Lincourt
Your Head A Splode - Strong Bad

AnswerRe: CTreeCtrl question, selecting/unselecting Pin
Rage29-Jan-07 21:42
professionalRage29-Jan-07 21:42 
QuestionDynamic CSplitterWnd Pin
neilsolent29-Jan-07 8:41
neilsolent29-Jan-07 8:41 
AnswerRe: Dynamic CSplitterWnd Pin
Mark Salsbery29-Jan-07 9:04
Mark Salsbery29-Jan-07 9:04 
GeneralRe: Dynamic CSplitterWnd Pin
neilsolent29-Jan-07 9:10
neilsolent29-Jan-07 9:10 
GeneralRe: Dynamic CSplitterWnd Pin
Mark Salsbery29-Jan-07 9:43
Mark Salsbery29-Jan-07 9:43 
AnswerRe: Dynamic CSplitterWnd Pin
Mark Salsbery29-Jan-07 10:58
Mark Salsbery29-Jan-07 10:58 
GeneralRe: Dynamic CSplitterWnd Pin
neilsolent1-Feb-07 6:17
neilsolent1-Feb-07 6:17 
QuestionHow to produce a +5V TTL signal on COM port? Pin
pavanbabut29-Jan-07 8:11
pavanbabut29-Jan-07 8:11 
AnswerRe: How to produce a +5V TTL signal on COM port? Pin
James R. Twine29-Jan-07 8:26
James R. Twine29-Jan-07 8:26 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
pavanbabut29-Jan-07 8:39
pavanbabut29-Jan-07 8:39 
AnswerRe: How to produce a +5V TTL signal on COM port? Pin
malaugh29-Jan-07 8:40
malaugh29-Jan-07 8:40 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
pavanbabut29-Jan-07 8:51
pavanbabut29-Jan-07 8:51 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
jeron129-Jan-07 9:34
jeron129-Jan-07 9:34 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
malaugh29-Jan-07 10:22
malaugh29-Jan-07 10:22 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
pavanbabut29-Jan-07 13:13
pavanbabut29-Jan-07 13:13 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
jeron130-Jan-07 5:38
jeron130-Jan-07 5:38 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
pavanbabut30-Jan-07 6:05
pavanbabut30-Jan-07 6:05 

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.