Search:

Type: Posts; User: Penguin of Oz

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,881

    They define where the end of each "case" is - I...

    They define where the end of each "case" is - I put them in to stop some cases accidentally running into eachother.
  2. Replies
    11
    Views
    1,881

    Just to be sure, put a few breaks and stuff into...

    Just to be sure, put a few breaks and stuff into your dialog procedure:


    BOOL CALLBACK NewTournyProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
    {

    switch(message)
    {
    ...
  3. Replies
    2
    Views
    1,512

    Those beeps are part of Windows, configurable...

    Those beeps are part of Windows, configurable through the sound settings in the Control Panel. I'm not sure how you'd go about turning them off... I don't see why you'd want to either, they're there...
  4. In addition to learning about the SMTP protocol,...

    In addition to learning about the SMTP protocol, you'll need to learn about the wonders of Winsock (eugh). Anyone know a link to a good Winsock tutorial?

    When you find an SMTP server, experiment...
  5. Replies
    8
    Views
    1,157

    Hehehehe, that's a sneaky, yet good idea. :)...

    Hehehehe, that's a sneaky, yet good idea. :) "Thou shalt press the button!".

    Only problem would be if the user Alt-Tabbed out :(
  6. Replies
    13
    Views
    3,841

    I had my doubts about that working, I appreciate...

    I had my doubts about that working, I appreciate it's messy, but Dev-C++/cygwin/mingw32 lapped it up nicely.

    Personally, I usually keep a char szMessage[256]; or something in any functions that...
  7. Replies
    8
    Views
    1,157

    Quote from Win32 SDK Reference talking about the...

    Quote from Win32 SDK Reference talking about the flags:



    :)
  8. Replies
    13
    Views
    3,841

    Also, some people may argue it's nicer to use...

    Also, some people may argue it's nicer to use sprintf(...);:



    char one[64] = { "hello " };
    char two[6] = { "world" };

    sprintf(one, "%s%s", one, two);
    MessageBox(NULL, one, "Meep", MB_OK |...
  9. Replies
    5
    Views
    1,289

    Excellent

    Both of you: thank you ever so much! :)

    I never thought of putting the text into a status bar before, but it seems an excellent solution and would probably be less annoying that hints popping up....
  10. Replies
    5
    Views
    1,289

    Thanks for your reply... However, is there...

    Thanks for your reply...

    However, is there anything for Win32 C (C++ is icky :() and is there a way to assign a tool-tip to something other than an item located in a toolbar? For example, a...
  11. Replies
    13
    Views
    1,313

    It's supposed to be the virtual keycode for the...

    It's supposed to be the virtual keycode for the character '1'. Sorry, I didn't test this code... :x

    I'll try and find the VKCode for 1 now... one moment...

    Turns out you can use ASCII values...
  12. Replies
    5
    Views
    1,289

    Add Hints to Items

    This has probably been asked many times before, but I was wondering if anybody could enlighten me as to which function can be used to assign a hint/tool-tip to anything on a dialog box.

    Thank you.
  13. Replies
    1
    Views
    1,286

    ADO with Win32 API

    Does anyone know where I can find information on coding a Win32 C app with Active Data Objects/ADO?

    Thank you in advance. :)
  14. Replies
    3
    Views
    4,987

    Addition

    If you only want to check for programs with visible windows open, the next step would be to use the function IsWindowVisible(...);

    Example:


    if(IsWindowVisible(hWnd)) AddToList(hWnd);

    ...
  15. Replies
    5
    Views
    1,555

    A few resources

    Firstly, Windows was written in C, so C is the most popular (and probably best) language to write Windows programs in.

    Personally, I took life the cheapskate way and learnt from online tutorials....
  16. Replies
    13
    Views
    1,313

    Hotkeys

    The simplest solution to your problem would be to use hotkeys in your program to detect if somebody pressed '1', '2', etc.

    This is acheived through the use of a funky function called...
Results 1 to 16 of 16