Thanks for both of your help. That worked.
Type: Posts; User: stickman
Thanks for both of your help. That worked.
So how would that work?
SetFocus(GetFocus())
Like That?
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?
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...
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...
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!!
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",...
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).
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...
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...
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;...
Thanks for your help. I'll try to subclass the listbox.
I know I can do this:
SendMessage(hListBox, LB_SETCURSEL, (WPARAM)-1, 0);
But I'm unsure as to where.
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...
And there's no way around that?
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.
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...
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...
I thought the
struct MYSTRUCT {
...
};
was the constructor. Do you mind telling me what this would be? Thanks.
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...
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.
I have this structure:
struct MYSTRUCT {
const char* var1;
const char* var2;
const char* var3;
};
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.
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...
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...