Click here to Skip to main content
15,941,615 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Thread queue size Pin
David Crow13-Apr-10 7:32
David Crow13-Apr-10 7:32 
AnswerRe: MFC Thread queue size Pin
Stephen Hewitt13-Apr-10 13:57
Stephen Hewitt13-Apr-10 13:57 
GeneralRe: MFC Thread queue size Pin
ajmalsiddiqi13-Apr-10 21:30
ajmalsiddiqi13-Apr-10 21:30 
GeneralRe: MFC Thread queue size Pin
Stephen Hewitt14-Apr-10 1:18
Stephen Hewitt14-Apr-10 1:18 
GeneralRe: MFC Thread queue size Pin
ajmalsiddiqi14-Apr-10 2:10
ajmalsiddiqi14-Apr-10 2:10 
GeneralRe: MFC Thread queue size Pin
Stephen Hewitt14-Apr-10 2:48
Stephen Hewitt14-Apr-10 2:48 
GeneralRe: MFC Thread queue size Pin
ajmalsiddiqi14-Apr-10 3:35
ajmalsiddiqi14-Apr-10 3:35 
QuestionCustom dropdown for CComboBox [modified] Pin
SpaceMonkey197012-Apr-10 21:25
SpaceMonkey197012-Apr-10 21:25 
I'd like to create a class derived from CComboBox which replaces the normal dropdown with a window containing a calendar control plus a few clickable areas. My first instinct is to create a very basic window which has the calendar as a child window and paints these clickable areas itself. When the dropdown arrow is clicked we create and show this window and somehow suppress the normal dropdown.

Is this the 'correct' way to tackle this? After trying it out I'm having a number of problems Cry | :(( The most glaring is that when the dropdown window is displayed the frame of the hosting dialog changes, ruining the illusion that the dropdown is part of the combobox. I think this may be because the dropdown window is a WS_POPUP (to avoid being restricted to the CCombobox client area). When the dropdown is active, the dialog isn't, causing the frame to be redrawn. That's my guess anyway.

There are numerous other problems which need to be tackled: how to handle focus, mouse capture etc; how to suppress the normal dropdown list; how to handle events such as the Windows button being pressed (i.e. how to automatically cancel the dropdown). These can probably wait for now though WTF | :WTF:

Anyone have any solid suggestions about how to create this custom dropdown? Any good links, blogs, books, or articles?
modified on Tuesday, April 13, 2010 3:48 AM

AnswerRe: Custom dropdown for CComboBox Pin
Iain Clarke, Warrior Programmer12-Apr-10 22:57
Iain Clarke, Warrior Programmer12-Apr-10 22:57 
GeneralRe: Custom dropdown for CComboBox Pin
SpaceMonkey197013-Apr-10 0:47
SpaceMonkey197013-Apr-10 0:47 
GeneralRe: Custom dropdown for CComboBox Pin
Iain Clarke, Warrior Programmer13-Apr-10 0:56
Iain Clarke, Warrior Programmer13-Apr-10 0:56 
AnswerRe: Custom dropdown for CComboBox Pin
Code-o-mat13-Apr-10 6:18
Code-o-mat13-Apr-10 6:18 
GeneralRe: Custom dropdown for CComboBox Pin
SpaceMonkey197013-Apr-10 8:49
SpaceMonkey197013-Apr-10 8:49 
GeneralRe: Custom dropdown for CComboBox Pin
Code-o-mat13-Apr-10 9:15
Code-o-mat13-Apr-10 9:15 
QuestionConverting an image into jpeg format Pin
Srivathsa_12-Apr-10 20:57
Srivathsa_12-Apr-10 20:57 
AnswerRe: Converting an image into jpeg format Pin
Vijjuuu.12-Apr-10 21:06
Vijjuuu.12-Apr-10 21:06 
GeneralRe: Converting an image into jpeg format Pin
Iain Clarke, Warrior Programmer12-Apr-10 23:20
Iain Clarke, Warrior Programmer12-Apr-10 23:20 
GeneralRe: Converting an image into jpeg format Pin
CPallini12-Apr-10 23:35
mveCPallini12-Apr-10 23:35 
GeneralRe: Converting an image into jpeg format Pin
Vijjuuu.12-Apr-10 23:40
Vijjuuu.12-Apr-10 23:40 
GeneralRe: Converting an image into jpeg format Pin
CPallini12-Apr-10 23:47
mveCPallini12-Apr-10 23:47 
AnswerRe: Converting an image into jpeg format Pin
Cedric Moonen12-Apr-10 21:12
Cedric Moonen12-Apr-10 21:12 
AnswerRe: Converting an image into jpeg format Pin
CPallini12-Apr-10 21:21
mveCPallini12-Apr-10 21:21 
QuestionWindows date change event Pin
Vijjuuu.12-Apr-10 20:40
Vijjuuu.12-Apr-10 20:40 
AnswerRe: Windows date change event Pin
David Crow13-Apr-10 2:56
David Crow13-Apr-10 2:56 
AnswerRe: Windows date change event Pin
KarstenK13-Apr-10 4:34
mveKarstenK13-Apr-10 4:34 

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.