Click here to Skip to main content
16,015,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use Unicode to std::ostrstream Pin
Rama Krishna Vavilala31-May-02 3:43
Rama Krishna Vavilala31-May-02 3:43 
GeneralRe: How to use Unicode to std::ostrstream Pin
JohnnyG31-May-02 3:54
JohnnyG31-May-02 3:54 
GeneralCurrent time Pin
esapp42030-May-02 8:49
esapp42030-May-02 8:49 
GeneralRe: Current time Pin
Ravi Bhavnani30-May-02 9:18
professionalRavi Bhavnani30-May-02 9:18 
GeneralRe: Current time Pin
Bill Wilson30-May-02 11:56
Bill Wilson30-May-02 11:56 
Generalsetting text inside CHtmlView Pin
Big B30-May-02 8:34
Big B30-May-02 8:34 
GeneralRe: setting text inside CHtmlView Pin
S Fewings30-May-02 20:30
S Fewings30-May-02 20:30 
QuestionUser draw Combobox - MeasureItem doesn't get called!? Pin
30-May-02 6:57
suss30-May-02 6:57 
As the title says, MeasureItem just doesn't get called except for couple times at the beginning (I found that out with a debugger). It doesn't matter what height I make MeasureItem set, the effect never shows. Also ownderdraw fixed is UNset and ownerdraw variable is SET, and this class was working correctly in another application.

Here is some codes:
BOOL CMultiLineComboBox::PreCreateWindow (CREATESTRUCT& cs)
{
if (!CComboBox::PreCreateWindow (cs))
return FALSE;

cs.dwExStyle |= WS_EX_CLIENTEDGE;
cs.style &= ~( CBS_OWNERDRAWFIXED | CBS_SORT );
cs.style |= ( CBS_OWNERDRAWVARIABLE | CBS_DROPDOWNLIST | CBS_HASSTRINGS );
return TRUE;
}

It is used like this:
m_pcomboGap[i] = new CMultiLineComboBox();
m_pcomboGap[i]->Create (WS_CHILD | WS_BORDER | CBS_NOINTEGRALHEIGHT,
rect, this, IDC_COMBO1 + i);


void CMultiLineComboBox::DrawItem(LPDRAWITEMSTRUCT lpdis) is written and
working.

Any help is appreciated, thanks.


AnswerRe: User draw Combobox - MeasureItem doesn't get called!? Pin
Tomasz Sowinski30-May-02 13:01
Tomasz Sowinski30-May-02 13:01 
GeneralRe: User draw Combobox - MeasureItem doesn't get called!? Pin
30-May-02 13:51
suss30-May-02 13:51 
GeneralComponents and Controls in VC7 Pin
Le centriste30-May-02 6:42
Le centriste30-May-02 6:42 
GeneralRe: Components and Controls in VC7 Pin
Rama Krishna Vavilala30-May-02 7:23
Rama Krishna Vavilala30-May-02 7:23 
GeneralRe: Components and Controls in VC7 Pin
Mazdak30-May-02 9:20
Mazdak30-May-02 9:20 
GeneralRe: Components and Controls in VC7 Pin
Le centriste30-May-02 9:28
Le centriste30-May-02 9:28 
GeneralRe: Components and Controls in VC7 Pin
Mazdak30-May-02 21:16
Mazdak30-May-02 21:16 
GeneralWorker Threads and GetExitCodeThread() Pin
Chris Meech30-May-02 6:36
Chris Meech30-May-02 6:36 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Prem Kumar30-May-02 7:11
Prem Kumar30-May-02 7:11 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Chris Meech30-May-02 7:25
Chris Meech30-May-02 7:25 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Tomasz Sowinski30-May-02 13:16
Tomasz Sowinski30-May-02 13:16 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Chris Meech31-May-02 2:22
Chris Meech31-May-02 2:22 
General"Scalar deleting destructor" error Pin
Jason Hihn30-May-02 6:07
Jason Hihn30-May-02 6:07 
GeneralRe: "Scalar deleting destructor" error Pin
Prem Kumar30-May-02 7:14
Prem Kumar30-May-02 7:14 
GeneralRe: "Scalar deleting destructor" error Pin
Jason Hihn30-May-02 7:19
Jason Hihn30-May-02 7:19 
GeneralRe: "Scalar deleting destructor" error Pin
Rama Krishna Vavilala30-May-02 7:25
Rama Krishna Vavilala30-May-02 7:25 
GeneralRe: "Scalar deleting destructor" error Pin
Jason Hihn30-May-02 7:53
Jason Hihn30-May-02 7:53 

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.