Search:

Type: Posts; User: Niara

Page 1 of 12 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    878

    Hello, I don't know MFC but seeing some net...

    Hello, I don't know MFC but seeing some net samples I think it will be similar except by calling the object class (and I suppose more other differences of course), but I think you'll find it usefull....
  2. I'm reading your code, I think there's something...

    I'm reading your code, I think there's something on the 'if' line: GetMenuState never returns -1. This is the reference:


    If the specified item does not exist, the return value is 0xFFFFFFFF.
    ...
  3. Maybe I answered too fast, sorry. The...

    Maybe I answered too fast, sorry.

    The WM_INITMENUPOPUP fires when the menu is about to show: the user places the cursor over the menu, WM_INITMENUPOPUP is fired, and the the menu is showed. That...
  4. Hello, this is the WM_INITMENUPOPUP reference: ...

    Hello, this is the WM_INITMENUPOPUP reference:


    WM_INITMENUPOPUP
    hmenuPopup = (HMENU) wParam; // handle of submenu
    uPos = (UINT) LOWORD(lParam); // submenu item position ...
  5. Replies
    1
    Views
    835

    You can do it with tabs: A tab control is...

    You can do it with tabs:



    A tab control is analogous to the dividers in a notebook or the labels in a file cabinet. By using a tab control, an application can define
    multiple pages for the...
  6. Check also Announcements - General Programming...

    Check also Announcements - General Programming Boards

    Niara
  7. Replies
    1
    Views
    873

    "..of any computer..." On windows the startup...

    "..of any computer..."

    On windows the startup is a registry entry that tells the system to run a file on certain path, you can do it through the api functions; also nsis installer have its own...
  8. Replies
    2
    Views
    790

    Or even easier: use the win32 GetTickCount...

    Or even easier: use the win32 GetTickCount instead time() functions to get the milliseconds before and after, then just deduct. On the MSDN/GetTickCount() theres some better explanation than mine,...
  9. Replies
    2
    Views
    790

    You can save the time befor the loop and check it...

    You can save the time befor the loop and check it after:



    //#include <time.h>

    //involved variables
    clock_t start_time, end_time;
    double elapsed_time;
  10. "...What actually goes within a resource...

    "...What actually goes within a resource file?..."

    Well, on the resource files goes the resources :)

    Heres a sample from both files:



    //definitions.h
    #define ARBITRARY_IMAGE_ID 100
  11. "...What does the int 101 stand for?..." ...

    "...What does the int 101 stand for?..."

    Resources are represented by integers, and you define an integer with an easily readable value



    //resource file *rc
    MY_APPLICATION_ICON ICON...
  12. Replies
    2
    Views
    851

    As far as I know you have to check the scrollbar...

    As far as I know you have to check the scrollbar messages (WM_HSCROLL, WM_VSCROLL) to resetup the visible area over the whole 'real' area. I'm not sure if it can be done through the HDC modifying the...
  13. Replies
    5
    Views
    2,708

    "...I associate specific data with the class..."...

    "...I associate specific data with the class..."

    When you create a class you can set some extra data through the 'cbWndExtra' variable on the WNDCLASSEX struct; with this you will be able to store...
  14. The first line on the Win32 Reference Manual...

    The first line on the Win32 Reference Manual about 'EM_EXSETSEL' says:



    The EM_EXSETSEL message selects a range of characters and/or OLE objects in a rich edit control.


    See also the...
  15. Ups sorry memcpy, I haven't seen your post :)

    Ups sorry memcpy, I haven't seen your post :)
  16. I haven't tested it, but what size have the...

    I haven't tested it, but what size have the 'input' buffer? If is 0 bytes you shouldn't have to scanf anything into it no?

    Niara
  17. Replies
    3
    Views
    5,115

    For the errors it seems that you have forgotten...

    For the errors it seems that you have forgotten to link the winsock library.

    Niara
  18. Replies
    4
    Views
    11,660

    "...(line 65) The function (listen) will not...

    "...(line 65) The function (listen) will not return until a connection request is made..."

    Are you sure? 'listen' function starts your socket listening for incoming socket connections until the...
  19. Replies
    2
    Views
    5,287

    You can set different values for each item as...

    You can set different values for each item as item data, then just get the item data using LB_GETITEMDATA message and switch it:



    //while setting up the list
    int item_index;

    item_index =...
  20. Replies
    3
    Views
    3,050

    "...I know inet_ntoa is deprecated..." Then,...

    "...I know inet_ntoa is deprecated..."

    Then, why don't you start using using inet_pton() or inet_ntop() functions rather tha discuss about wannabes jobs? Also, are you using a hacking library...
  21. Replies
    4
    Views
    9,498

    "...could you post the compete code so that i can...

    "...could you post the compete code so that i can slap it into the compiler?..."

    No, I can't post the complete code because it's your task to figure it out how to integrate :) . That's a single...
  22. Replies
    4
    Views
    9,498

    "...i have looked at a truckload of websites on...

    "...i have looked at a truckload of websites on google relating to subclassing an editbox and none offer a simple clear-cut code example..."

    Not?? Have you seen the win32 reference manual on the...
  23. You can implement 2 arrays, one for the 1-valued...

    You can implement 2 arrays, one for the 1-valued characters, and other for the 2-valued; then simply read char by char and check out on which array is; for the ignored characters, if they all are non...
  24. Replies
    1
    Views
    860

    Draw you own crosshair on the mouse position :) ...

    Draw you own crosshair on the mouse position :)

    Niara
  25. I don't know any rad tool for that, but meanwhile...

    I don't know any rad tool for that, but meanwhile can't find any you can search about splash screens, you will be able to make something similar to windows media player masked mode using the default...
Results 1 to 25 of 292
Page 1 of 12 1 2 3 4