Type: Posts; User: TpOreilly
Search took 0.02 seconds.
July 17th, 2011, 01:12 PM
X -= 5;
InvalidateRect(hWnd, NULL, TRUE);
July 17th, 2011, 01:02 PM
The left and right arrow key is now working as it should, although when i press a key such as 'S' or any other key which I have not defined code for makes my icon move right.
July 17th, 2011, 10:16 AM
Ok then... Where are you telling me to put "return 0;"???
July 17th, 2011, 07:58 AM
I have added the
Before I added that it did actually compile :P
Also, i still have the same problem.
July 16th, 2011, 03:42 PM
Start again :) As I am confused, could you correct my mistakes in my original code below and re-post it please :)
LRESULT CALLBACK MessageProcedure(HWND hWnd, UINT message, WPARAM wParam,...
July 16th, 2011, 03:23 PM
July 16th, 2011, 02:47 PM
I have done what you said, but that results in my window not showing when i run the application. It doesnt show any errors either.
July 16th, 2011, 02:17 PM
I think i might be confused lol...
I havnt got "return DefWindowProc (hWnd, message, wParam, lParam);" in the case of the WM_KEYDOWN message, i have "DefWindwProc" right at the very end on the...
July 16th, 2011, 11:38 AM
I call it to provide default processing for any window messages that my application does not process.
July 16th, 2011, 05:52 AM
Hi, here is my windows procedure:
LRESULT CALLBACK MessageProcedure(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
static int X = 250;
static int Y = 250;
June 13th, 2011, 06:00 PM
June 12th, 2011, 04:50 PM
//here we're making a structure which holds information about how we are gonna paint in the client area...
//here we are calling the beginpaint function and...
June 11th, 2011, 07:36 PM
Hi, I know that:
//here im creating a handle to an icon...
//here im loading the icon into to the icon variable...
hIcon = LoadIcon(hInstance,...
June 11th, 2011, 06:26 PM
Ohhh I get you :)
They are actually the definitions, but when we use the word 'definition' we are talking about a definition in source code, when we refer to the definition in the dll file it is...
June 11th, 2011, 04:22 PM
Ok. i appreciate your replies very much so :) So, from this forum ive learned that:
The windows.h file contains the declarations and the dll files contain the definitions (already compiled in...
June 11th, 2011, 02:54 PM
Yeah, I understand that a dll file is not source code, but actually source code already compiled into a language which the computer understands. And i think...
declaration = predefining a...
June 10th, 2011, 05:15 AM
Ok :) so to summarise and closeee this thread:
The windows.h file contains the declarations and the dll files contain the definitions of the functions within the windows API.
They seperate the...
Carrying on from this, couldnt they have both the declarations and the definitions in the dll files?
Ok, im guessing mine does, I use MS Visual Studio.
Ok, so the dll files form the windows api, and the windows.h file is a part of the windows sdk.
Is the windows sdk automatically provided for us by the IDE when we choose to create a windows...
Thanks for the reply :)
Ive also been trying to find out what actually is the Windows API, is it the windows.h file or the dll files, or a compilation of both which form it?
Hi, recently ive been trying to find out the differences between the windows api (the dll files) and the windows.h header file, i found that the windows.h file contains the declarations and the dll...
April 5th, 2011, 07:47 PM
Seeing as we dont modify the attributes of the PAINTSTRUCT variable, the must be default values. By default does this make the device context area the size of the whole client area?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.