Thanks for that. The search appears to be down so I probably wouldn't have found that.
It seems I was missing a great deal of data from my DEVMODE structure that was filled in by...
Type: Posts; User: iSlak
Thanks for that. The search appears to be down so I probably wouldn't have found that.
It seems I was missing a great deal of data from my DEVMODE structure that was filled in by...
This returned a value of 0. :confused:
Also, my window is not displaying in full screen mode. The taskbar, window borders, and title bar are still visible. Any insight on this?
1. I'm using the following code to change my display settings:
DEVMODE devModeScreen;
memset(&devModeScreen, 0, sizeof(devModeScreen));
devModeScreen.dmSize = sizeof(devModeScreen); ...
Ah, alright, I didn't even think to make that distinction.
That being said, is it possible to know whether a window has been minimized to the taskbar? I would like to stop calling my rendering...
I'm making an OpenGL application and if what I read was correct on MSDN, PeekMessage() doesn't wait for a message before returning. This speeds up my rendering immensely.
Thanks for the clarification! It works flawlessly now.
I changed my case statement to WM_DESTROY and the application still persists in the background after the window has been destroyed.
I've written a simple Windows program that will display a window. However, when I close the window it closes properly but the application is still running in the background.
#include...
Here we go: http://www.codeguru.com/forum/showthread.php?t=344569
Thanks for that. Here's another newbie question: What's the difference between <iostream> and <iostream.h>?
#include <iostream.h>
void recurse(int i)
{
if (i == 1)
{
i = 0;
recurse(i);
}
//Statements
This is making some sense now. What do you all mean by a "non-zero" value?
That works too. I tried doing the opposite but it doesn't work:
This is always true:
('x' || 'y' == someChar)
This is always false:
I'm doing the following:
if (('x' || 'y') == someChar)
{
//statements;
}
This doesn't evalulate as true even if x or y = someChar. Is the syntax wrong for a char type?
Thank you! I've been programming in Unrealscript all day and confused myself something fierce there.
#include <iostream>
#include <stdlib.h>
using namespace std;
char coord [3][3];
char winner;
void function DisplayBoard()
{