Click here to Skip to main content
15,904,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CComboBox Pin
David Crow16-Oct-03 7:07
David Crow16-Oct-03 7:07 
GeneralRe: CComboBox Pin
De Nardis Andrea16-Oct-03 8:04
De Nardis Andrea16-Oct-03 8:04 
Generalbluetooth Pin
da_adel16-Oct-03 3:28
da_adel16-Oct-03 3:28 
Questionhow do i make a bitmap appear on a button when i click on the button Pin
swerajan16-Oct-03 2:51
swerajan16-Oct-03 2:51 
GeneralOwner Drawn CHeaderCtrl Items Pin
Uller16-Oct-03 1:58
Uller16-Oct-03 1:58 
GeneralRe: Owner Drawn CHeaderCtrl Items Pin
Roger Allen16-Oct-03 2:19
Roger Allen16-Oct-03 2:19 
GeneralRe: Owner Drawn CHeaderCtrl Items Pin
Uller16-Oct-03 3:39
Uller16-Oct-03 3:39 
GeneralRe: Owner Drawn CHeaderCtrl Items Pin
Uller16-Oct-03 2:21
Uller16-Oct-03 2:21 
One more item that might be important...

The m_hWnd I'm using references is an ATL Control. It is hosted in a CWnd. I just figured out that if I change "CWnd::FromHandle(m_hWnd)" to CWnd::FromHandle(this->GetParent())" my DrawItem function gets called. The header is drawn in the wrong place (since it is now drawn in the parent), but I can get around that if I have to.

Edit: Never mind. That doesn't actually work. I thought it was.

It seems like the problem is that the message is just never getting down to my window. In wincore.cpp in the CWnd::ReflectLastMsg function and the LookupPermanent call is failing. So I think there is something wrong with the way I have things setup.
GeneralRe: Owner Drawn CHeaderCtrl Items Pin
Roger Allen16-Oct-03 5:25
Roger Allen16-Oct-03 5:25 
GeneralRe: Owner Drawn CHeaderCtrl Items Pin
Uller16-Oct-03 7:33
Uller16-Oct-03 7:33 
GeneralImage resolution.. Pin
Neha16-Oct-03 1:42
Neha16-Oct-03 1:42 
Generalinfix to postfix Pin
16-Oct-03 0:45
suss16-Oct-03 0:45 
QuestionHow to draw selection with different color?? Pin
Umesh Sharma16-Oct-03 0:42
Umesh Sharma16-Oct-03 0:42 
QuestionHow to make .ACS(agent character storage) Pin
sunju16-Oct-03 0:34
sunju16-Oct-03 0:34 
GeneralUnexpected Win32 Thread when using sockets Pin
Niklas Andersson15-Oct-03 23:30
Niklas Andersson15-Oct-03 23:30 
GeneralRe: Unexpected Win32 Thread when using sockets Pin
cmk16-Oct-03 9:20
cmk16-Oct-03 9:20 
GeneralRemoveDirectory - help Pin
Boby.George15-Oct-03 23:08
professionalBoby.George15-Oct-03 23:08 
GeneralRe: RemoveDirectory - help Pin
murali_utr16-Oct-03 0:33
murali_utr16-Oct-03 0:33 
GeneralRe: re you? Pin
jhwurmbach15-Oct-03 22:55
jhwurmbach15-Oct-03 22:55 
QuestionClass Problem? Pin
wow999915-Oct-03 21:43
wow999915-Oct-03 21:43 
AnswerRe: Class Problem? Pin
souldog15-Oct-03 22:26
souldog15-Oct-03 22:26 
QuestionHow catch a button in the system taskbar?online wait! Pin
Paristam15-Oct-03 21:14
Paristam15-Oct-03 21:14 
QuestionHow do I programatically add a RAS direct connection via COM5, not just only start the wizard ? Pin
Thomas Rinshofer15-Oct-03 21:13
Thomas Rinshofer15-Oct-03 21:13 
GeneralHelp me!Very hurry! Pin
Paristam15-Oct-03 20:14
Paristam15-Oct-03 20:14 
GeneralRe: Help me!Very hurry! Pin
Randhir Sinha15-Oct-03 21:01
Randhir Sinha15-Oct-03 21:01 

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.