   fast question about "messagebox" ( win OP)
  hi folks...I often use Messagebox function for errors notification,the problem is that if I''m in window mode all is ok,but if I''m in full-screen, the messagebox goes in background and is necessary an Alt+Tab for reading the message.I''ve not found any flag that move messagebox in foreground if the application is in fullscreen.is there a fast and easy method for to do it?thanks ^__^ 
  Not sure if it works in fullscreen mode, but there was something like MB_SETFOREGROUND. Have you tried that? ;  What are you passing for the first parameter in the MessageBox() function? It should be the window that you want the box to appear on top of. If you are just passing NULL, then it will appear behind.I imagine this is what your messagebox probably looks like:MessageBox(NULL, "Danger Will Robinson, Danger!", "Error", MB_OK);You should change it to have a parent window, rather than giving it NULL. If the parent window is, say, HWND MainWindow, then your message box should look like this:MessageBox(MainWindow, "Danger Will Robinson, Danger!", "Error", MB_OK);That should fix your problem. If it doesn''t, then you may want to check if your window has the WS_EX_TOPMOST flag somewhere, which will prevent most windows from appearing in front of it. And if none of that works, then I''m not sure what could be causing it, I would need to see some code. Have fun. ;quote:Not sure if it works in fullscreen mode, but there was something like MB_SETFOREGROUND. Have you tried that?yes.. already tried... but doesn't work quote:You should change it to have a parent window, rather than giving it NULL.I've tried.. but nothing...- EDIT -I've tried with both the advices and now work fine!! MessageBox( m_hWnd, "Now it works!!!", "happiness", MB_SETFOREGROUND|MB_OK );thanks boys   [edited by - BlueChip on February 12, 2004 4:36:20 PM]