Click here to Skip to main content
15,885,985 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Should I add CLR support to my native project? Pin
jhwurmbach13-Feb-08 5:56
jhwurmbach13-Feb-08 5:56 
QuestionRe: Should I add CLR support to my native project? Pin
Hanan88813-Feb-08 6:14
Hanan88813-Feb-08 6:14 
GeneralRe: Should I add CLR support to my native project? Pin
jhwurmbach13-Feb-08 6:44
jhwurmbach13-Feb-08 6:44 
AnswerRe: Should I add CLR support to my native project? Pin
Nemanja Trifunovic13-Feb-08 6:36
Nemanja Trifunovic13-Feb-08 6:36 
GeneralWindows Menus & OpenGL Window Pin
Sabry190513-Feb-08 2:01
Sabry190513-Feb-08 2:01 
GeneralRe: Windows Menus & OpenGL Window Pin
Cedric Moonen13-Feb-08 2:06
Cedric Moonen13-Feb-08 2:06 
GeneralRe: Windows Menus & OpenGL Window Pin
Sabry190513-Feb-08 2:38
Sabry190513-Feb-08 2:38 
GeneralRe: Windows Menus & OpenGL Window Pin
Cedric Moonen13-Feb-08 2:48
Cedric Moonen13-Feb-08 2:48 
A-M-S-S wrote:
The action that done with my menu item is to set some flags and variables then call
InvalidateRect(NULL,FALSE);


InvalidateRect will simply have as an result to send a WM_PAINT message to your window. If you don't handle that message or you don't repaint your window correctly, then it's logical that the menu doesn't disappear.


A-M-S-S wrote:
To repaint the entire client area, so the menu drawing area should disappear, and this the normal situation that happen in any windows application -the menu disappear, if you just click outside it-


Sorry, I don't understand what you are trying to say Confused | :confused: . What you call a normal situation (the menu "just"disappear when you click outside it) is simply because that window reacts on the WM_PAINT message and repaints itself.

What you have to understand is that Windows doesn't keep the 'image' of your window. So it means that if something is drawn over it (like with the menu), there is no way to recreate the image unless it asks the window to repaint itself.

Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: Windows Menus & OpenGL Window Pin
Sabry190513-Feb-08 3:46
Sabry190513-Feb-08 3:46 
GeneralRe: Windows Menus & OpenGL Window Pin
Cedric Moonen13-Feb-08 4:36
Cedric Moonen13-Feb-08 4:36 
GeneralRe: Windows Menus & OpenGL Window Pin
Sabry190513-Feb-08 4:42
Sabry190513-Feb-08 4:42 
GeneralPPM file format - header files to include Pin
rover_boy13-Feb-08 1:36
rover_boy13-Feb-08 1:36 
GeneralRe: PPM file format - header files to include Pin
Chris Losinger13-Feb-08 4:47
professionalChris Losinger13-Feb-08 4:47 
Questionhow to start programming in USB Pin
Member 412123213-Feb-08 1:05
Member 412123213-Feb-08 1:05 
AnswerRe: how to start programming in USB Pin
Cedric Moonen13-Feb-08 1:19
Cedric Moonen13-Feb-08 1:19 
GeneralRe: how to start programming in USB Pin
SnaKeBeD13-Feb-08 3:35
SnaKeBeD13-Feb-08 3:35 
GeneralRe: how to start programming in USB Pin
Iain Clarke, Warrior Programmer13-Feb-08 3:55
Iain Clarke, Warrior Programmer13-Feb-08 3:55 
GeneralCreation of DLL (DllRegisterServer,DllUnResiterServer) in VC++ with Classid Pin
suprajav13-Feb-08 0:36
suprajav13-Feb-08 0:36 
GeneralRe: Creation of DLL (DllRegisterServer,DllUnResiterServer) in VC++ with Classid Pin
jhwurmbach13-Feb-08 1:01
jhwurmbach13-Feb-08 1:01 
GeneralRe: Creation of DLL (DllRegisterServer,DllUnResiterServer) in VC++ with Classid Pin
CPallini13-Feb-08 1:47
mveCPallini13-Feb-08 1:47 
GeneralCustom UART baud rates on a regular Windows PC Pin
arnold_w12-Feb-08 23:25
arnold_w12-Feb-08 23:25 
GeneralRe: Custom UART baud rates on a regular Windows PC Pin
Iain Clarke, Warrior Programmer12-Feb-08 23:50
Iain Clarke, Warrior Programmer12-Feb-08 23:50 
GeneralRe: Custom UART baud rates on a regular Windows PC Pin
CPallini13-Feb-08 0:16
mveCPallini13-Feb-08 0:16 
GeneralRe: Custom UART baud rates on a regular Windows PC Pin
arnold_w13-Feb-08 1:15
arnold_w13-Feb-08 1:15 
QuestionRe: Custom UART baud rates on a regular Windows PC Pin
David Crow13-Feb-08 2:45
David Crow13-Feb-08 2:45 

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.