Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can we launch/open a Web page? Pin
Jose Lamas Rios25-Jul-05 16:41
Jose Lamas Rios25-Jul-05 16:41 
GeneralRe: Can we launch/open a Web page? Pin
ATC26-Jul-05 2:05
ATC26-Jul-05 2:05 
GeneralMS-Word automation and Virtual memory Pin
Imtiaz Murtaza25-Jul-05 2:41
Imtiaz Murtaza25-Jul-05 2:41 
GeneralGetting contact of Outlook Express on asp page Pin
Member 126565125-Jul-05 1:59
Member 126565125-Jul-05 1:59 
Generalexiting the infinite while loop Pin
Uzma Waheed25-Jul-05 1:02
Uzma Waheed25-Jul-05 1:02 
GeneralRe: exiting the infinite while loop Pin
Trollslayer25-Jul-05 1:13
mentorTrollslayer25-Jul-05 1:13 
GeneralRe: exiting the infinite while loop Pin
khan++25-Jul-05 1:13
khan++25-Jul-05 1:13 
GeneralRe: exiting the infinite while loop Pin
Jörgen Sigvardsson25-Jul-05 1:24
Jörgen Sigvardsson25-Jul-05 1:24 
GeneralHope this will work 4 u Pin
Eytukan25-Jul-05 2:18
Eytukan25-Jul-05 2:18 
GeneralRe: exiting the infinite while loop Pin
Tim Smith25-Jul-05 3:57
Tim Smith25-Jul-05 3:57 
GeneralRe: exiting the infinite while loop Pin
toxcct25-Jul-05 5:44
toxcct25-Jul-05 5:44 
GeneralRe: exiting the infinite while loop Pin
Tim Smith26-Jul-05 3:46
Tim Smith26-Jul-05 3:46 
GeneralStack overflow Pin
LiYS25-Jul-05 0:33
LiYS25-Jul-05 0:33 
GeneralRe: Stack overflow Pin
mark novak25-Jul-05 0:47
mark novak25-Jul-05 0:47 
GeneralRe: Stack overflow Pin
LiYS25-Jul-05 0:49
LiYS25-Jul-05 0:49 
GeneralRe: Stack overflow Pin
khan++25-Jul-05 0:54
khan++25-Jul-05 0:54 
GeneralRe: Stack overflow Pin
LiYS25-Jul-05 3:47
LiYS25-Jul-05 3:47 
GeneralRe: Stack overflow Pin
toxcct25-Jul-05 5:47
toxcct25-Jul-05 5:47 
GeneralRe: Stack overflow Pin
Tim Smith26-Jul-05 3:52
Tim Smith26-Jul-05 3:52 
GeneralThe old time classic dll questions! Pin
Themis24-Jul-05 23:58
Themis24-Jul-05 23:58 
GeneralRe: The old time classic dll questions! Pin
mark novak25-Jul-05 0:41
mark novak25-Jul-05 0:41 
QuestionAbout ComboBox Owner draw problem? Pin
starschen24-Jul-05 23:47
sussstarschen24-Jul-05 23:47 
A strange problem, programmed to modify style for owner draw can't p
The CMyComboBox is derived from MFC's CMyComboBox,
I have modify style to realize owner draw for CMyComboBox as follows:

First, I do it at subclass the combobox,
void CMyComboBox::PreSubclassWindow()
{
ModifyStyle(0, CBS_OWNERDRAWFIXED|CBS_HASSTRINGS);
CComboBox::PreSubclassWindow();
}

Further, I do it at Create the combobox,
void CMyComboBox::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
lpCreateStruct->style |= CBS_OWNERDRAWFIXED | CBS_HASSTRINGS;

if (CComboBox::OnCreate(lpCreateStruct) == -1)
return -1;

return 0;
}

Ok, I have run the program, however that cannot into the DrawItem and MeasureItem which's areadly overridden.
But there is successful When I had modify resource associated with the CMyComboBox that has add special styles for owner drawing :
CBS_OWNERDRAWFIXED | CBS_HASSTRINGS


Any ideas ?
AnswerRe: About ComboBox Owner draw problem? Pin
mark novak25-Jul-05 0:24
mark novak25-Jul-05 0:24 
GeneralRe: About ComboBox Owner draw problem? Pin
starschen25-Jul-05 15:28
sussstarschen25-Jul-05 15:28 
GeneralRe: About ComboBox Owner draw problem? Pin
mark novak25-Jul-05 15:40
mark novak25-Jul-05 15:40 

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.