Hope you understand!
Can't say I do,hWnd will hold the handle to the window being used, so can't you just write:
ShowWindow(hWnd, SW_HIDE);
If not, you will have to clarify :P
Posting / Attaching the whole code would help.
William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
So let me get this right, you basically have an array of hWnd's which all link to the same event handler, but you want to do different things with each of them in the messengerBox dialog when it's opened.
Even if I understood correctly, it depends what kind of changes will be in each new messengerBox dialog, will it have a totally new layout? or different data in the text fields?
More code, screenshots, anything to describe it better would be helpful.
William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
Now I want to be able to, from the dialog, send messages, but I cant figure out how to sepparate the dialogs and get the contact[i].hWnd (to hide window) and the contact[i].id to send a message back.
Obviously the use of arrays here has made this very confusing, maybe it's possibly to do without, I don't know. But all I can suggest is to try using global variables and message notifications too, at this stage in making the program you have the biggest understanding of the problem and your intentions, so it's easiest for you to solve (unless perhaps I take a look at the entire project).
William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
Well I have used many hours, and unlike normally, I'm completely clueless.
I'd be very glad if you could help me, and I could send over my project if thats what it takes. Its a bit too long to be posted here.
It's worth a shot, just copy the project, delete unneeded compiler generated files, zip it and attach here :)
William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
Uhm you want a compilable project or just the code? Because my project has a few dependencis.
MySQL is a killer: 500 MB :P
I'll stick with just the code please ;)
William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129