Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TpOreilly

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    case WM_KEYDOWN:

    switch(wParam)

    case VK_LEFT:
    {
    X -= 5;
    InvalidateRect(hWnd, NULL, TRUE);
    return 0;
  2. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    Thanks :)

    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.
  3. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    Ok then... Where are you telling me to put "return 0;"???
  4. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    I have added the
    break;.

    Before I added that it did actually compile :P

    Also, i still have the same problem.
  5. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    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,...
  6. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    Returned 0.
  7. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    Oh ok.

    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.
  8. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    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...
  9. Replies
    23
    Views
    2,180

    Re: Virtual Key Codes

    I call it to provide default processing for any window messages that my application does not process.
  10. Replies
    23
    Views
    2,180

    Virtual Key Codes

    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;
    HINSTANCE...
  11. Replies
    4
    Views
    613

    Re: Drawing an icon

    ? :)
  12. Replies
    4
    Views
    613

    Re: Drawing an icon

    Ok, so...

    //here we're making a structure which holds information about how we are gonna paint in the client area...

    PAINTSTRUCT PaintSt;

    //here we are calling the beginpaint function and...
  13. Replies
    4
    Views
    613

    Drawing an icon

    Hi, I know that:

    //here im creating a handle to an icon...

    HICON hIcon;

    //here im loading the icon into to the icon variable...

    hIcon = LoadIcon(hInstance,...
  14. Replies
    22
    Views
    1,470

    Re: API question :)

    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...
  15. Replies
    22
    Views
    1,470

    Re: API question :)

    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...
  16. Replies
    22
    Views
    1,470

    Re: API question :)

    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...
  17. Replies
    22
    Views
    1,470

    Re: API question :)

    thanks
  18. Replies
    22
    Views
    1,470

    Re: API question :)

    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...
  19. Replies
    22
    Views
    1,470

    Re: API question :)

    Carrying on from this, couldnt they have both the declarations and the definitions in the dll files?
  20. Replies
    22
    Views
    1,470

    Re: API question :)

    Ok, im guessing mine does, I use MS Visual Studio.
  21. Replies
    22
    Views
    1,470

    Re: API question :)

    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...
  22. Replies
    22
    Views
    1,470

    Re: API question :)

    Already seen that :)
  23. Replies
    22
    Views
    1,470

    Re: API question :)

    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?
  24. Replies
    22
    Views
    1,470

    API question :)

    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...
  25. Replies
    6
    Views
    1,855

    Re: What's a device context?

    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?

    (This question...
Results 1 to 25 of 73
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center