Click here to Skip to main content
15,907,236 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 7:29
Newbie0014-Oct-07 7:29 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 8:00
Mark Salsbery14-Oct-07 8:00 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 8:02
Newbie0014-Oct-07 8:02 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 8:22
Mark Salsbery14-Oct-07 8:22 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 10:04
Newbie0014-Oct-07 10:04 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 10:24
Mark Salsbery14-Oct-07 10:24 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 10:32
Newbie0014-Oct-07 10:32 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 11:02
Mark Salsbery14-Oct-07 11:02 
There's lots of error codes[^] listed in the documentation for
GetLastError()[^] Smile | :)

I'm not sure what's going on with this, or why it would work with builder.

I guess this leaves SetupPixelFormat() ...  what goes on in there?
Is it supposed to have a DC passed to it?  If so, is that DC supposed to be a memory DC
or can it be a window DC?  Since you can't change the format of a window DC, I would expect
it requires a memory DC - or does it create one internally?

I'm just guessing from what little code I've seen, but I suspect you're passing the wrong DC to
wglCreateContext().

Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
led mike15-Oct-07 4:36
led mike15-Oct-07 4:36 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery15-Oct-07 5:54
Mark Salsbery15-Oct-07 5:54 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel [modified] Pin
Newbie0015-Oct-07 7:00
Newbie0015-Oct-07 7:00 
QuestionSTL map = Hashtable, what about STL multimap? Pin
devvvy13-Oct-07 16:44
devvvy13-Oct-07 16:44 
AnswerRe: STL map = Hashtable, what about STL multimap? Pin
Christian Graus13-Oct-07 17:15
protectorChristian Graus13-Oct-07 17:15 
GeneralRe: STL map = Hashtable, what about STL multimap? Pin
devvvy13-Oct-07 17:18
devvvy13-Oct-07 17:18 
GeneralRe: STL map = Hashtable, what about STL multimap? Pin
Christian Graus13-Oct-07 18:15
protectorChristian Graus13-Oct-07 18:15 
AnswerSTL map != Hashtable Pin
kuibing14-Oct-07 17:27
kuibing14-Oct-07 17:27 
Questionplease introduce me (Managed) C++ Pin
chandu00412-Oct-07 23:56
chandu00412-Oct-07 23:56 
AnswerRe: please introduce me (Managed) C++ Pin
Christian Graus13-Oct-07 0:03
protectorChristian Graus13-Oct-07 0:03 
GeneralRe: please introduce me (Managed) C++ Pin
chandu00413-Oct-07 0:10
chandu00413-Oct-07 0:10 
General[SOLVED isn't it?] Pin
Luc Pattyn13-Oct-07 2:59
sitebuilderLuc Pattyn13-Oct-07 2:59 
GeneralRe: please introduce me (Managed) C++ Pin
#realJSOP15-Oct-07 5:38
professional#realJSOP15-Oct-07 5:38 
GeneralRe: please introduce me (Managed) C++ Pin
Mark Salsbery15-Oct-07 6:02
Mark Salsbery15-Oct-07 6:02 
AnswerRe: please introduce me (Managed) C++ Pin
Hamid_RT19-Oct-07 6:55
Hamid_RT19-Oct-07 6:55 
QuestionProblem with array. Pin
cshong12-Oct-07 21:38
cshong12-Oct-07 21:38 
AnswerRe: Problem with array. Pin
Christian Graus12-Oct-07 23:01
protectorChristian Graus12-Oct-07 23: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.