Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: msdn 2010 professional - read double format Pin
Peter_in_278020-Mar-12 11:10
professionalPeter_in_278020-Mar-12 11:10 
SuggestionRe: msdn 2010 professional - read double format Pin
Albert Holguin20-Mar-12 12:53
professionalAlbert Holguin20-Mar-12 12:53 
AnswerRe: msdn 2010 professional - read double format Pin
Luc Pattyn20-Mar-12 13:04
sitebuilderLuc Pattyn20-Mar-12 13:04 
GeneralRe: msdn 2010 professional - read double format Pin
Peter_in_278020-Mar-12 13:28
professionalPeter_in_278020-Mar-12 13:28 
GeneralRe: msdn 2010 professional - read double format Pin
Albert Holguin20-Mar-12 13:36
professionalAlbert Holguin20-Mar-12 13:36 
QuestionLooking for idea(s) Pin
David Crow20-Mar-12 4:09
David Crow20-Mar-12 4:09 
AnswerRe: Looking for idea(s) Pin
Albert Holguin20-Mar-12 5:17
professionalAlbert Holguin20-Mar-12 5:17 
QuestionRe: Looking for idea(s) Pin
David Crow20-Mar-12 7:50
David Crow20-Mar-12 7:50 
Albert Holguin wrote:
Another option would be to make a window with no borders that just has a number of icons on it for the user to select from. You can probably also tie that in to a right-click or something like that.

I had thought about this option but wasn't sure how to create a dynamic list control. What I've tried, in response to a right-click, looks like:

CPoint pt;
GetCursorPos(&pt);

ScreenToClient(&pt);

CRect rc;
rc.left   = pt.x;
rc.top    = pt.y;
rc.right  = 5 + 398; // hard-coded for now
rc.bottom = 5 + 293; // hard-coded for now

CListCtrl *lc = new CListCtrl;
lc->Create(WS_CHILDWINDOW | WS_VISIBLE | WS_VSCROLL | LVS_ICON | LVS_SINGLESEL, rc, this, IDC_LC_BITMAPS);
lc->ShowWindow(SW_NORMAL);
lc->InsertItem(0, _T("IMAGE 1"));
lc->InsertItem(1, _T("IMAGE 2"));


This shows up...sort of. The dynamic list control does not appear to cover the controls behind it like it would if it was in a separate modal dialog. When I mouse over it, the other controls start bringing themselves to the front.

Also, how to get responses from the dynamic list control? Would ON_NOTIFY_REFLECT() work?

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous


AnswerRe: Looking for idea(s) Pin
Albert Holguin20-Mar-12 8:31
professionalAlbert Holguin20-Mar-12 8:31 
AnswerRe: Looking for idea(s) Pin
enhzflep20-Mar-12 8:42
enhzflep20-Mar-12 8:42 
GeneralRe: Looking for idea(s) Pin
David Crow20-Mar-12 10:09
David Crow20-Mar-12 10:09 
GeneralRe: Looking for idea(s) Pin
enhzflep20-Mar-12 18:58
enhzflep20-Mar-12 18:58 
GeneralRe: Looking for idea(s) Pin
David Crow21-Mar-12 3:10
David Crow21-Mar-12 3:10 
GeneralRe: Looking for idea(s) Pin
Randor 21-Mar-12 8:56
professional Randor 21-Mar-12 8:56 
QuestionRe: Looking for idea(s) Pin
David Crow21-Mar-12 10:05
David Crow21-Mar-12 10:05 
AnswerRe: Looking for idea(s) Pin
Randor 21-Mar-12 10:49
professional Randor 21-Mar-12 10:49 
GeneralRe: Looking for idea(s) Pin
David Crow21-Mar-12 18:05
David Crow21-Mar-12 18:05 
GeneralRe: Looking for idea(s) Pin
Randor 22-Mar-12 11:37
professional Randor 22-Mar-12 11:37 
GeneralRe: Looking for idea(s) Pin
David Crow23-Mar-12 6:05
David Crow23-Mar-12 6:05 
GeneralRe: Looking for idea(s) Pin
Randor 23-Mar-12 7:08
professional Randor 23-Mar-12 7:08 
GeneralRe: Looking for idea(s) Pin
David Crow23-Mar-12 8:04
David Crow23-Mar-12 8:04 
Questionabout send and receive msg from gsm modem with 8051 controller Pin
bh_krunal19-Mar-12 22:23
bh_krunal19-Mar-12 22:23 
GeneralRe: about send and receive msg from gsm modem with 8051 controller Pin
Jochen Arndt19-Mar-12 23:14
professionalJochen Arndt19-Mar-12 23:14 
QuestionRe: about send and receive msg from gsm modem with 8051 controller Pin
David Crow20-Mar-12 4:12
David Crow20-Mar-12 4:12 
AnswerRe: about send and receive msg from gsm modem with 8051 controller Pin
Albert Holguin20-Mar-12 5:09
professionalAlbert Holguin20-Mar-12 5:09 

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.