Click here to Skip to main content
15,886,823 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

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

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.