Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMoving from VC++ 6.0 to VC++2005 Pin
josip cagalj6-Dec-07 23:03
josip cagalj6-Dec-07 23:03 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
CPallini6-Dec-07 23:43
mveCPallini6-Dec-07 23:43 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
josip cagalj7-Dec-07 1:51
josip cagalj7-Dec-07 1:51 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
CPallini7-Dec-07 1:54
mveCPallini7-Dec-07 1:54 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
josip cagalj7-Dec-07 3:27
josip cagalj7-Dec-07 3:27 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
CPallini7-Dec-07 3:36
mveCPallini7-Dec-07 3:36 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
josip cagalj7-Dec-07 3:55
josip cagalj7-Dec-07 3:55 
GeneralMFC Modal OpenGL dialog wont show up unless I pressed "Alt" key (on intel hardware) Pin
xanagan6666-Dec-07 22:37
xanagan6666-Dec-07 22:37 
I have a very strange problem.

I have an MFC application that open a modal CDialog and using opengl to render to it using timer

I initialize opengl and timer in OnInitDialog();

it look something like this

<br />
//call this function in OnInitDialog<br />
void initComponent(){<br />
   <br />
   //resize dialog to fit the whole screen<br />
   int desktopWidth = GetSystemMetrics(0);<br />
   int desktopHeight = GetSystemMetrics(1);<br />
   SetWindowPos(NULL,0,0,desktopWidth,desktopHeight,SWP_NOZORDER);<br />
<br />
   //initialize opengl<br />
   initOpenGL();<br />
<br />
   //start timer<br />
   SetTimer(1,15,NULL);<br />
<br />
} <br />


My application have no problem so far on NVIDIA and ATI hardware.
but on intel(integrated chipset) , it wont show the dialog unless I pressed "Alt" key(and then the program work fine).

I tried calling SetFocus , set property to foreground windows , move
initialize opengl into OnCreate but it still the same on intel hardware.

My Dialog is

1.a popup modal dialog.
2.has no border.
3.initialize OpenGL and Timer in OnInitDialog.
4.draw image in timer.
5.work fine on NVIDIA and ATI hardware (test on 8 PC)
6.Had to press "Alt" key for dialog to show up on intel hardware.(test on 3 pc)

Thank in advance.
Questionstruct member alignment? Pin
Laurence6-Dec-07 20:36
Laurence6-Dec-07 20:36 
AnswerRe: struct member alignment? Pin
Matthew Faithfull7-Dec-07 2:23
Matthew Faithfull7-Dec-07 2:23 
AnswerRe: struct member alignment? Pin
Bram van Kampen7-Dec-07 13:12
Bram van Kampen7-Dec-07 13:12 
GeneralData corruption during File Write Pin
SelvaKr6-Dec-07 20:35
SelvaKr6-Dec-07 20:35 
GeneralRe: Data corruption during File Write Pin
Nelek6-Dec-07 21:32
protectorNelek6-Dec-07 21:32 
GeneralRe: Data corruption during File Write Pin
JudyL_MD7-Dec-07 2:02
JudyL_MD7-Dec-07 2:02 
GeneralRe: Data corruption during File Write Pin
Bram van Kampen7-Dec-07 12:46
Bram van Kampen7-Dec-07 12:46 
Generalerrors in converting code from multibyte to unicode Pin
neha.agarwal276-Dec-07 20:13
neha.agarwal276-Dec-07 20:13 
GeneralRe: errors in converting code from multibyte to unicode Pin
kcynic6-Dec-07 20:42
kcynic6-Dec-07 20:42 
GeneralRe: errors in converting code from multibyte to unicode Pin
CPallini6-Dec-07 23:47
mveCPallini6-Dec-07 23:47 
GeneralRe: errors in converting code from multibyte to unicode Pin
krmed7-Dec-07 1:59
krmed7-Dec-07 1:59 
GeneralHelp about characterset [modified] Pin
kcynic6-Dec-07 20:11
kcynic6-Dec-07 20:11 
GeneralRe: Help about characterset Pin
Hamed Musavi7-Dec-07 3:25
Hamed Musavi7-Dec-07 3:25 
GeneralRe: Help about characterset Pin
kcynic7-Dec-07 14:14
kcynic7-Dec-07 14:14 
GeneralRe: Help about characterset Pin
Hamed Musavi7-Dec-07 19:24
Hamed Musavi7-Dec-07 19:24 
QuestionHelp! How to change the color of the current row in datagrid [modified] Pin
shakaqrj6-Dec-07 19:49
shakaqrj6-Dec-07 19:49 
GeneralHelp in visual C++ Pin
cinzhan6-Dec-07 19:39
cinzhan6-Dec-07 19:39 

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.