Click here to Skip to main content
15,899,025 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFunction template passed as typename argument? Pin
Indrawati28-May-04 0:12
Indrawati28-May-04 0:12 
AnswerRe: Function template passed as typename argument? Pin
Ryan Binns28-May-04 0:53
Ryan Binns28-May-04 0:53 
AnswerRe: Function template passed as typename argument? Pin
cheesepirate28-May-04 0:53
cheesepirate28-May-04 0:53 
GeneralRe: Function template passed as typename argument? Pin
toxcct28-May-04 1:10
toxcct28-May-04 1:10 
GeneralRe: Function template passed as typename argument? Pin
cheesepirate28-May-04 2:23
cheesepirate28-May-04 2:23 
AnswerRe: Function template passed as typename argument? Pin
toxcct28-May-04 1:12
toxcct28-May-04 1:12 
GeneralProblem subclassing list of owner-drawn combobox Pin
Paul Vickery27-May-04 23:46
professionalPaul Vickery27-May-04 23:46 
GeneralRe: Problem subclassing list of owner-drawn combobox Pin
Paul Vickery28-May-04 1:22
professionalPaul Vickery28-May-04 1:22 
OK, I've sussed it. So, for everyone out there who is dying to know what the solution is, here it is:

I have overridden OnChildNotify in my subclassed listbox (CListBoxCS). I have then added the following code:
switch (message)
{
case WM_DRAWITEM:
case WM_MEASUREITEM:
case WM_COMPAREITEM:
case WM_DELETEITEM:
  // don't allow owner-draw operations in the list, but handle them in the combo
  return FALSE;
}
return CListBox::OnChildNotify(message, wParam, lParam, pLResult);
This then causes all the drawing to be handled by the combobox rather than by the subclassed listbox.


"The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)
QuestionHow to save GDI+ bmp as CMYK color GDI+ bmp Pin
pubududilena27-May-04 23:44
pubududilena27-May-04 23:44 
Questionchar* arr = “Nisse”; ? Pin
anderslundsgard27-May-04 23:34
anderslundsgard27-May-04 23:34 
AnswerRe: char* arr = “Nisse”; ? Pin
Roger Allen27-May-04 23:38
Roger Allen27-May-04 23:38 
AnswerRe: char* arr = “Nisse”; ? Pin
toxcct27-May-04 23:38
toxcct27-May-04 23:38 
AnswerRe: char* arr = “Nisse”; ? Pin
jmkhael28-May-04 0:55
jmkhael28-May-04 0:55 
Answer[Message Deleted] Pin
Naren Neelamegam28-May-04 19:58
Naren Neelamegam28-May-04 19:58 
GeneralRe: char* arr = “Nisse”; ? Pin
toroso7328-May-04 21:04
toroso7328-May-04 21:04 
GeneralExperts pls help ! General question Pin
Member 115017627-May-04 21:49
Member 115017627-May-04 21:49 
Generalfullscreen dialog control Pin
Bilge Kaan27-May-04 21:30
Bilge Kaan27-May-04 21:30 
GeneralRe: fullscreen dialog control Pin
Ryan Binns28-May-04 0:57
Ryan Binns28-May-04 0:57 
QuestionHow can i make ComboBox read only Pin
Zeeshan Bilal27-May-04 20:39
Zeeshan Bilal27-May-04 20:39 
AnswerRe: How can i make ComboBox read only Pin
toxcct27-May-04 21:53
toxcct27-May-04 21:53 
GeneralA Dialog Box Problem Pin
Imtiaz Murtaza27-May-04 19:37
Imtiaz Murtaza27-May-04 19:37 
GeneralRe: A Dialog Box Problem Pin
Anthony_Yio27-May-04 19:57
Anthony_Yio27-May-04 19:57 
GeneralRe: A Dialog Box Problem Pin
Zeeshan Bilal27-May-04 20:36
Zeeshan Bilal27-May-04 20:36 
GeneralRe: A Dialog Box Problem Pin
Ravi Bhavnani28-May-04 2:36
professionalRavi Bhavnani28-May-04 2:36 
GeneralRe: A Dialog Box Problem [modified] Pin
Naren Neelamegam28-May-04 20:11
Naren Neelamegam28-May-04 20:11 

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.