Search:

Type: Posts; User: stickman

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,895

    Thanks for both of your help. That worked.

    Thanks for both of your help. That worked.
  2. Replies
    6
    Views
    1,895

    So how would that work? SetFocus(GetFocus()) ...

    So how would that work?

    SetFocus(GetFocus())

    Like That?
  3. Replies
    6
    Views
    1,895

    The only problem with that is that I have more...

    The only problem with that is that I have more than one edit control, so how would it remember which control had the focus last?
  4. Replies
    6
    Views
    1,895

    Dont Kill Focus When Switching Tasks

    I tried searching for an answers to my question, but I don't know what to search for. It most likely has something to do with subclassing, but I still don't know how to do this. Anyway, I want my...
  5. Replies
    10
    Views
    8,021

    I assumed it would be in the timezone of the east...

    I assumed it would be in the timezone of the east coast because thats where the server is located so all the times are stored in the east coast timezone, and when I use php to use this value, it...
  6. Replies
    10
    Views
    8,021

    Surprisingly, that worked. I just changed gmtime...

    Surprisingly, that worked. I just changed gmtime to localtime though because the times were a few hours off. Thanks for your help. It is greatly appreciated!!
  7. Replies
    10
    Views
    8,021

    By removing the atol function, it compiles and...

    By removing the atol function, it compiles and works, but the times are all wrong and way off. This is my code:



    char* buffer = new char[250];
    strftime(buffer, 250, "%m/%d/%y @ %I:%M %p",...
  8. Replies
    10
    Views
    8,021

    It wont compile if I use long, but it does...

    It wont compile if I use long, but it does compile if I use long* and I changed atoi to atol (I didnt know such a function existed until now).
  9. Replies
    10
    Views
    8,021

    Using the atoi function, except that specific...

    Using the atoi function, except that specific string will result in an error.

    Anyway, when I tried:



    localtime((long*)atoi(myvar));


    It compiles successfully, but the End Program Now...
  10. Replies
    10
    Views
    8,021

    Convert char* time to const tm*

    I'm new to all the time functions for c++ so I dont know if there is a function for this or not. Anyway, I have an 11 character long char*/const char*/string/int (whatever will work because I know...
  11. Replies
    11
    Views
    1,912

    I've made my own way and I don't care if its the...

    I've made my own way and I don't care if its the best way because it works for me:



    case LBN_SELCHANGE: {
    int x = SendMessage(hWndList, LB_GETCURSEL, 0, 0);
    if(x != LB_ERR) {
    RECT rc;...
  12. Replies
    11
    Views
    1,912

    Thanks for your help. I'll try to subclass the...

    Thanks for your help. I'll try to subclass the listbox.
  13. Replies
    11
    Views
    1,912

    I know I can do this: SendMessage(hListBox,...

    I know I can do this:

    SendMessage(hListBox, LB_SETCURSEL, (WPARAM)-1, 0);

    But I'm unsure as to where.
  14. I have the same question, but temporarily I have...

    I have the same question, but temporarily I have mine set up like this:



    bool thread=false;

    // just using your example
    DWORD WINAPI think(LPVOID pcon) {
    thread = true;
    // do...
  15. Replies
    11
    Views
    1,912

    And there's no way around that?

    And there's no way around that?
  16. Replies
    11
    Views
    1,912

    I meant the white space below the last item in a...

    I meant the white space below the last item in a list box, where all the items in the listbox DONT fill the entire height of the listbox.
  17. Replies
    11
    Views
    1,912

    Quick listbox question

    I was wondering, is it possible to deselect the selected item in a listbox by clicking in the white space of the listbox? If so, what notification would this be so I can do more than just deselect...
  18. Replies
    9
    Views
    2,182

    I guess I dont know constructors, but I'll do...

    I guess I dont know constructors, but I'll do some google-ing because I'm a little curious.

    With trial and error I was able to do what you just said before you had posted that.

    Thanks for your...
  19. Replies
    9
    Views
    2,182

    I thought the struct MYSTRUCT { ... };...

    I thought the



    struct MYSTRUCT {
    ...
    };


    was the constructor. Do you mind telling me what this would be? Thanks.
  20. Replies
    9
    Views
    2,182

    The replies are greatly appreciated. I think the...

    The replies are greatly appreciated. I think the reason why it was working for was because the MYSTRUCT variable I was using was a global variable and not just a local variable, but that is good to...
  21. Replies
    9
    Views
    2,182

    I solved my own problem once again. I prefer...

    I solved my own problem once again. I prefer string variables to const char* variables, so I just tried making all the const char* variables string variables and it worked. So this thread is solved.
  22. Replies
    9
    Views
    2,182

    Problem with custom structure

    I have this structure:



    struct MYSTRUCT {
    const char* var1;
    const char* var2;
    const char* var3;
    };
  23. Replies
    11
    Views
    1,626

    And I was under the assumption of the opposite...

    And I was under the assumption of the opposite that a groupbox should be a parent. I dont know for sure though because I'm not very experienced with this.
  24. Replies
    11
    Views
    1,626

    I just realized that the reason my program was...

    I just realized that the reason my program was running slow was because I was sending a lot of queries to my MySQL database and not because I had many many control things. The reason I originally was...
  25. Replies
    11
    Views
    1,626

    The only reason I didnt search before is because...

    The only reason I didnt search before is because I'm not sure what I should be searching for because I wasnt sure where to start. I will take a look at that article and search the forum to see if I...
Results 1 to 25 of 194
Page 1 of 8 1 2 3 4