Click here to Skip to main content
15,924,367 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Process Info Pin
Monty219-Mar-06 23:02
Monty219-Mar-06 23:02 
AnswerRe: Process Info Pin
Naveen19-Mar-06 23:13
Naveen19-Mar-06 23:13 
AnswerRe: Process Info Pin
Hamid_RT20-Mar-06 0:55
Hamid_RT20-Mar-06 0:55 
AnswerRe: Process Info Pin
Ștefan-Mihai MOGA21-Mar-06 1:04
professionalȘtefan-Mihai MOGA21-Mar-06 1:04 
QuestionCombobox ctlcolor issue Pin
Nishad S19-Mar-06 22:39
Nishad S19-Mar-06 22:39 
AnswerRe: Combobox ctlcolor issue Pin
Nibu babu thomas19-Mar-06 22:46
Nibu babu thomas19-Mar-06 22:46 
GeneralRe: Combobox ctlcolor issue Pin
Nishad S19-Mar-06 23:13
Nishad S19-Mar-06 23:13 
GeneralRe: Combobox ctlcolor issue Pin
Nibu babu thomas19-Mar-06 23:21
Nibu babu thomas19-Mar-06 23:21 
Just a sample...

// The following code shows how to subclass the edit control and list box
// controls inside a combo box. It uses WM_CTLCOLOR for subclassing.
// CSuperComboBox represents the combo box
HBRUSH CSuperComboBox::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
   if (nCtlColor == CTLCOLOR_EDIT)
   {
      //Edit control
      if (m_edit.GetSafeHwnd() == NULL)
         m_edit.SubclassWindow(pWnd->GetSafeHwnd());
   }
   else if (nCtlColor == CTLCOLOR_LISTBOX)
   {
      //ListBox control
      if (m_listbox.GetSafeHwnd() == NULL)
         m_listbox.SubclassWindow(pWnd->GetSafeHwnd());
   }
   HBRUSH hbr = CComboBox::OnCtlColor(pDC, pWnd, nCtlColor);
   return hbr;
}

void CSuperComboBox::OnDestroy()
{
   //unsubclass edit and list box before destruction
   if (m_edit.GetSafeHwnd() != NULL)
      m_edit.UnsubclassWindow();
   if (m_listbox.GetSafeHwnd() != NULL)
      m_listbox.UnsubclassWindow();
   CComboBox::OnDestroy();
}



Nibu thomas
Software Developer

AnswerRe: Combobox ctlcolor issue Pin
Hamid_RT20-Mar-06 0:28
Hamid_RT20-Mar-06 0:28 
QuestionChange the child window Icon dynamically Pin
Sarvan AL19-Mar-06 22:36
Sarvan AL19-Mar-06 22:36 
AnswerRe: Change the child window Icon dynamically Pin
Nibu babu thomas19-Mar-06 22:38
Nibu babu thomas19-Mar-06 22:38 
GeneralRe: Change the child window Icon dynamically Pin
Sarvan AL19-Mar-06 22:43
Sarvan AL19-Mar-06 22:43 
GeneralRe: Change the child window Icon dynamically Pin
Nibu babu thomas19-Mar-06 22:44
Nibu babu thomas19-Mar-06 22:44 
GeneralRe: Change the child window Icon dynamically Pin
Sarvan AL19-Mar-06 22:51
Sarvan AL19-Mar-06 22:51 
GeneralRe: Change the child window Icon dynamically Pin
Sarvan AL19-Mar-06 22:57
Sarvan AL19-Mar-06 22:57 
GeneralRe: Change the child window Icon dynamically Pin
Monty219-Mar-06 23:09
Monty219-Mar-06 23:09 
GeneralRe: Change the child window Icon dynamically Pin
Nibu babu thomas19-Mar-06 23:24
Nibu babu thomas19-Mar-06 23:24 
GeneralRe: Change the child window Icon dynamically Pin
Nibu babu thomas19-Mar-06 23:26
Nibu babu thomas19-Mar-06 23:26 
QuestionVideo Pin
J512198219-Mar-06 22:19
J512198219-Mar-06 22:19 
AnswerRe: Video Pin
Monty219-Mar-06 22:23
Monty219-Mar-06 22:23 
GeneralRe: Video Pin
J512198219-Mar-06 22:57
J512198219-Mar-06 22:57 
GeneralRe: Video Pin
Monty219-Mar-06 23:04
Monty219-Mar-06 23:04 
QuestionProcess Pin
Subramaniam s.V.19-Mar-06 22:14
Subramaniam s.V.19-Mar-06 22:14 
AnswerRe: Process Pin
Naveen19-Mar-06 23:11
Naveen19-Mar-06 23:11 
GeneralRe: Process Pin
Subramaniam s.V.19-Mar-06 23:33
Subramaniam s.V.19-Mar-06 23:33 

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.