Search:

Type: Posts; User: -leech-

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Yup, that's what i'm looking for, with just the...

    Yup, that's what i'm looking for, with just the resource ID. Something like:


    HWND parentHwnd = GetParentHWND(IDC_EDITCONTROL);
  2. Retrieving the window handle of a window a control resides in

    For example, let's say i want to get the HWND of the window that IDC_MYEDITCONTROL is located, how would i go about doing that?

    Thanks.
  3. Replies
    12
    Views
    2,309

    Just ran a check and, yes, the 'count' variable...

    Just ran a check and, yes, the 'count' variable keeps an accurate number of listbox entries.

    edit:



    Yea, that was it!! Shoot, damn logic errors, thanks a lot for your help.
  4. Replies
    12
    Views
    2,309

    I've changed it from char *buf = ""; to char...

    I've changed it from
    char *buf = "";
    to
    char buf[255];

    ... still doesn't work.
  5. Replies
    12
    Views
    2,309

    I just did a check (a simple if() block) and...

    I just did a check (a simple if() block) and apperently that single SendMessage ALWAYS returns LB_ERR. Why? I have no idea...

    Man, this is frustrating...
  6. Replies
    12
    Views
    2,309

    Here's my DialogProc: BOOL CALLBACK...

    Here's my DialogProc:

    BOOL CALLBACK DlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam)
    {
    switch(Message)
    {
    case WM_INITDIALOG:
    SendMessage(hDlg,...
  7. Replies
    12
    Views
    2,309

    Yup. I've tried that, but it seems it's...

    Yup.




    I've tried that, but it seems it's having a problem with the handle to the listbox. I'm using Visual Studio.NET btw.
  8. Replies
    12
    Views
    2,309

    Retrieving strings from a listbox

    I'm having a major problem retrieving strings from a listbox and i don't have a clue as to what's wrong. Actually, i know exactly what's wrong but i don't know why it is. Anyways, here's the code...
  9. Replies
    4
    Views
    4,583

    Thanks a lot for the example, it really helped...

    Thanks a lot for the example, it really helped clear things up. But is there a way to do it in straight C without using the vector?

    edit: nevermind, i got it now, thanks ;)
  10. Replies
    4
    Views
    4,583

    Could you maybe give me an example, strings...

    Could you maybe give me an example, strings aren't exactly my forte ;)

    Thanks.
  11. Replies
    4
    Views
    4,583

    OPENFILENAME and multiple files.

    Hey,

    I've set up my OPENFILENAME sturctures' flags to include the option OFN_ALLOWMULTISELECT but i'm having trouble. What i want to do is give the option for the user to select multiple files...
  12. Replies
    2
    Views
    1,451

    Changing the colour of static text.

    Hey, i'm trying to create a function that will change the colour of a string of static text by passing its resource ID. So far the function i have doesn't seem to be working but everything compiles...
  13. Replies
    3
    Views
    3,061

    Use the modulus (%) sign. For example: 5 % 2 ==...

    Use the modulus (%) sign. For example: 5 % 2 == 1.
  14. Replies
    0
    Views
    933

    Visual C++.NET Profiler?

    I just upgraded from VC6 to VC.NET and i can't find the profiling option anywhere...

    :confused:
  15. Replies
    3
    Views
    1,294

    Determining a variable type...

    Hi, i was wondering if there was a way to determine the variable type of a number taken from a user input. For example:

    if(input == float)
    {
    Do something;
    }
    else if(input == short || int...
  16. Replies
    2
    Views
    1,150

    What's wrong with this resource file?

    I'm trying to compile this application using Dev-C++ and the compiler coughs up when it tries to compile the resource file, saying there's a "parse error." The thing is that i can't find anything...
  17. http://ps2dev.livemedia.com.au/

    http://ps2dev.livemedia.com.au/
  18. As i said: Me, having the official SDK? I...

    As i said:



    Me, having the official SDK? I wish ;)
  19. No, i'm using free compilers and tools available...

    No, i'm using free compilers and tools available at http://ps2dev.livemedia.com.au/ for win32. The tutorials available describe how to set up the environment, compilers and libraries but don't even...
  20. Independant console development using Visual C++ 6

    Hey all. Didn't exactly where i should post this, oh well.

    I really want to get into console development, specifically the PS2, but i absolutly HATE using gcc with it's command-line/make form of...
  21. Replies
    12
    Views
    2,084

    They're only teaching us friggin JAVA......

    They're only teaching us friggin JAVA... ughgshgh!!ddaqe2!
  22. Replies
    48
    Views
    5,132

    Poll: I'd like to know that as well.

    I'd like to know that as well.
  23. Replies
    48
    Views
    5,132

    Poll: Yup, great article, but i still feel OpenGL has...

    Yup, great article, but i still feel OpenGL has the edge due to it's ease of use...
  24. Replies
    3
    Views
    1,568

    Actually, i'm doing this through the API (not...

    Actually, i'm doing this through the API (not MFC) using C.

    Thanks anyways :)
  25. Replies
    3
    Views
    1,568

    Checkmarked menu items

    Hi, i was wondering if anyone could point me to a tutorial or give a crash course on how i can get checkmarked menu items to work. I'm using VC++. I'd like to know how i can enable/disable an...
Results 1 to 25 of 54
Page 1 of 3 1 2 3