Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPropertyGrid Attributes Pin
TheBerk10-Mar-08 8:04
TheBerk10-Mar-08 8:04 
GeneralRe: PropertyGrid Attributes Pin
led mike10-Mar-08 8:44
led mike10-Mar-08 8:44 
QuestionDefinition of dllimport function not allowed Pin
steve_rm10-Mar-08 7:16
steve_rm10-Mar-08 7:16 
GeneralRe: Definition of dllimport function not allowed Pin
Mark Salsbery10-Mar-08 7:42
Mark Salsbery10-Mar-08 7:42 
GeneralRe: Definition of dllimport function not allowed Pin
Chris Losinger10-Mar-08 7:43
professionalChris Losinger10-Mar-08 7:43 
GeneralRe: Definition of dllimport function not allowed Pin
steve_rm10-Mar-08 16:00
steve_rm10-Mar-08 16:00 
GeneralRe: Definition of dllimport function not allowed Pin
Chris Losinger11-Mar-08 0:46
professionalChris Losinger11-Mar-08 0:46 
QuestionHow to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 6:45
Hanan88810-Mar-08 6:45 
I'm developing a game in win32 c++ DirectX.

On my graphic game window I have a picture of a 'close' button. When I click on it I want it to to the same as clicking the 'X' button.

But although I tried several things:
<br />
::SendMessage(hWnd, WM_CLOSE, NULL, NULL);


::SendMessage(hWnd, WM_DESTROY, NULL, NULL);
<br />
DestroyWindow(hWnd);


I get strange bugs that won't happen when I click 'X'.
AnswerRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Randor 10-Mar-08 7:02
professional Randor 10-Mar-08 7:02 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 7:37
Hanan88810-Mar-08 7:37 
AnswerRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery10-Mar-08 7:07
Mark Salsbery10-Mar-08 7:07 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 7:47
Hanan88810-Mar-08 7:47 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery10-Mar-08 7:54
Mark Salsbery10-Mar-08 7:54 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 22:50
Hanan88810-Mar-08 22:50 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery11-Mar-08 6:18
Mark Salsbery11-Mar-08 6:18 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
ThatsAlok10-Mar-08 22:35
ThatsAlok10-Mar-08 22:35 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery11-Mar-08 6:19
Mark Salsbery11-Mar-08 6:19 
QuestionC++ graph library equivalent to MSAGL or GLEE? Pin
jwalsh10-Mar-08 6:33
jwalsh10-Mar-08 6:33 
QuestionRe: C++ graph library equivalent to MSAGL or GLEE? Pin
Maximilien10-Mar-08 7:11
Maximilien10-Mar-08 7:11 
QuestionRestricting others to inheritance from my class? Pin
Kishore JP10-Mar-08 5:34
Kishore JP10-Mar-08 5:34 
QuestionRe: Restricting others to inheritance from my class? Pin
CPallini10-Mar-08 6:00
mveCPallini10-Mar-08 6:00 
GeneralRe: Restricting others to inheritance from my class? Pin
David Crow10-Mar-08 6:07
David Crow10-Mar-08 6:07 
GeneralRe: Restricting others to inheritance from my class? Pin
Randor 10-Mar-08 6:16
professional Randor 10-Mar-08 6:16 
GeneralRe: Restricting others to inheritance from my class? Pin
Demian Panello10-Mar-08 6:21
Demian Panello10-Mar-08 6:21 
GeneralRe: Restricting others to inheritance from my class? Pin
Maxwell Chen10-Mar-08 6:25
Maxwell Chen10-Mar-08 6:25 

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.