Click here to Skip to main content
15,894,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Assign value to a variable after a delay Pin
Luc Pattyn30-Sep-10 0:43
sitebuilderLuc Pattyn30-Sep-10 0:43 
GeneralRe: Assign value to a variable after a delay Pin
Aescleal30-Sep-10 0:59
Aescleal30-Sep-10 0:59 
QuestionHow to call C# APIs from C++ Pin
pandit8429-Sep-10 17:36
pandit8429-Sep-10 17:36 
AnswerRe: How to call C# APIs from C++ Pin
Anand Todkar29-Sep-10 18:30
Anand Todkar29-Sep-10 18:30 
AnswerRe: How to call C# APIs from C++ Pin
Sauro Viti29-Sep-10 23:33
professionalSauro Viti29-Sep-10 23:33 
QuestionTab key doesn't work right Pin
garyflet29-Sep-10 6:32
garyflet29-Sep-10 6:32 
AnswerRe: Tab key doesn't work right Pin
josda100029-Sep-10 6:58
josda100029-Sep-10 6:58 
GeneralRe: Tab key doesn't work right Pin
garyflet29-Sep-10 8:00
garyflet29-Sep-10 8:00 
AnswerRe: Tab key doesn't work right [modified] Pin
Stephen Hewitt29-Sep-10 8:35
Stephen Hewitt29-Sep-10 8:35 
GeneralRe: Tab key doesn't work right Pin
garyflet29-Sep-10 10:16
garyflet29-Sep-10 10:16 
GeneralRe: Tab key doesn't work right Pin
Stephen Hewitt29-Sep-10 20:10
Stephen Hewitt29-Sep-10 20:10 
QuestionMCI playback ended Pin
MikeRWinter29-Sep-10 2:26
MikeRWinter29-Sep-10 2:26 
AnswerRe: MCI playback ended Pin
MikeRWinter29-Sep-10 4:37
MikeRWinter29-Sep-10 4:37 
AnswerRe: MCI playback ended Pin
Cool_Dev29-Sep-10 4:38
Cool_Dev29-Sep-10 4:38 
GeneralRe: MCI playback ended Pin
MikeRWinter29-Sep-10 4:54
MikeRWinter29-Sep-10 4:54 
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 
// I use VC6...

It should be possible Smile | :) :
//#include <windows.h>
//#pragma comment(lib, "user32.lib")

void CYourDialog::Test()
{
  CComboBox* pcBox = (CComboBox*) GetDlgItem(IDC_COMBO1);
  if (pcBox->GetSafeHwnd()) {
    pcBox->ShowDropDown(TRUE);
    
    COMBOBOXINFO sCBINFO = {0};
    sCBINFO.cbSize = sizeof(COMBOBOXINFO);
    
    if (::GetComboBoxInfo(pcBox->GetSafeHwnd(), &sCBINFO)) {
      if (sCBINFO.hwndList) {
        CWnd* pcList = CWnd::GetFromHandle(sCBINFO.hwndList);
        CRect cListRect;
        pcList->GetWindowRect(cListRect);
        cListRect.bottom -= 20;
        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 | :)

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 
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 

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.