Click here to Skip to main content
15,888,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRedimension CComboBox Pin
mesajflaviu29-Sep-10 1:23
mesajflaviu29-Sep-10 1:23 
AnswerRe: Redimension CComboBox Pin
Eugen Podsypalnikov29-Sep-10 1:38
Eugen Podsypalnikov29-Sep-10 1:38 
GeneralRe: Redimension CComboBox Pin
mesajflaviu29-Sep-10 2:01
mesajflaviu29-Sep-10 2:01 
GeneralRe: Redimension CComboBox Pin
Eugen Podsypalnikov29-Sep-10 2:18
Eugen Podsypalnikov29-Sep-10 2:18 
GeneralRe: Redimension CComboBox Pin
mesajflaviu29-Sep-10 2:42
mesajflaviu29-Sep-10 2:42 
GeneralRe: Redimension CComboBox Pin
Eugen Podsypalnikov29-Sep-10 2:58
Eugen Podsypalnikov29-Sep-10 2:58 
GeneralRe: Redimension CComboBox Pin
mesajflaviu29-Sep-10 8:14
mesajflaviu29-Sep-10 8:14 
GeneralRe: Redimension CComboBox Pin
Eugen Podsypalnikov29-Sep-10 10:53
Eugen Podsypalnikov29-Sep-10 10:53 
I have tried it too,
you can call the function at any time Smile | :) :
void CYourDialog::AdjustComboBox(CComboBox* pcBox)
{
  if (pcBox->GetSafeHwnd()) {    
    COMBOBOXINFO sCBINFO = {0};
    sCBINFO.cbSize = sizeof(COMBOBOXINFO);
    if (::GetComboBoxInfo(pcBox->GetSafeHwnd(), &sCBINFO)) {
      if (sCBINFO.hwndList) {
        CWnd* pcList = CWnd::FromHandle(sCBINFO.hwndList);
        CRect cListRect;
        pcList->GetWindowRect(cListRect);
        // do not worry, the bottom will be correctly adjusted:
        cListRect.bottom = cListRect.top; 
        pcList->MoveWindow(cListRect);
      }
    }
  }
}

They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap. Smile | :)

QuestionRe: Redimension CComboBox Pin
David Crow29-Sep-10 3:08
David Crow29-Sep-10 3:08 
AnswerRe: Redimension CComboBox Pin
mesajflaviu29-Sep-10 8:12
mesajflaviu29-Sep-10 8:12 
QuestionRe: Redimension CComboBox Pin
David Crow29-Sep-10 8:16
David Crow29-Sep-10 8:16 
GeneralRe: Redimension CComboBox Pin
Cool_Dev29-Sep-10 4:18
Cool_Dev29-Sep-10 4:18 
GeneralRe: Redimension CComboBox Pin
mesajflaviu29-Sep-10 8:15
mesajflaviu29-Sep-10 8:15 
AnswerRe: Redimension CComboBox Pin
Rolf Kristensen29-Sep-10 9:44
Rolf Kristensen29-Sep-10 9:44 
GeneralRe: Redimension CComboBox Pin
mesajflaviu30-Sep-10 20:09
mesajflaviu30-Sep-10 20:09 
QuestionWindows Service cannot access mapped network drive Pin
Ranojay28-Sep-10 21:43
Ranojay28-Sep-10 21:43 
AnswerRe: Windows Service cannot access mapped network drive Pin
Sauro Viti28-Sep-10 21:53
professionalSauro Viti28-Sep-10 21:53 
GeneralRe: Windows Service cannot access mapped network drive Pin
Ranojay28-Sep-10 22:31
Ranojay28-Sep-10 22:31 
AnswerRe: Windows Service cannot access mapped network drive Pin
Kushagra Tiwari29-Sep-10 1:45
Kushagra Tiwari29-Sep-10 1:45 
GeneralRe: Windows Service cannot access mapped network drive Pin
Ranojay29-Sep-10 2:11
Ranojay29-Sep-10 2:11 
AnswerRe: Windows Service cannot access mapped network drive [modified] Pin
Kushagra Tiwari29-Sep-10 3:01
Kushagra Tiwari29-Sep-10 3:01 
QuestionHow to get the co-ordinates of rectangle Pin
raju_shiva28-Sep-10 21:10
raju_shiva28-Sep-10 21:10 
AnswerRe: How to get the co-ordinates of rectangle Pin
Stephen Hewitt28-Sep-10 21:17
Stephen Hewitt28-Sep-10 21:17 
GeneralRe: How to get the co-ordinates of rectangle Pin
raju_shiva28-Sep-10 23:14
raju_shiva28-Sep-10 23:14 
GeneralRe: How to get the co-ordinates of rectangle Pin
Stephen Hewitt29-Sep-10 0:25
Stephen Hewitt29-Sep-10 0:25 

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.