Hmm, probably the first option, language isn't a problem luckily.
Anyways, yes I know the basics in C, that's why I was asking how to do this. Whiteflags answer was probably right but I don't know...
Type: Posts; User: Pecado
Hmm, probably the first option, language isn't a problem luckily.
Anyways, yes I know the basics in C, that's why I was asking how to do this. Whiteflags answer was probably right but I don't know...
Hello everyone. I'd like to get some help with this issue...
I've got a program that consists in 1 initialization of a library and 2 voids, like this:
init_library()
{
...
first(); // Once...
Yes I know. I just thought that, as it said that that part of the code was necessary to clear the data if nothing was selected, it was needed for the code to work. Probably not now, but eventually I...
I have this dialog:
BOOL CALLBACK ConcesDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{switch(Message)
{case WM_INITDIALOG:
SendDlgItemMessage(hwnd, IDC_COMBOBOX,...
I've tried a million different ways, but it doesn't get past the BOOL.
Correct me if I'm wrong, but shouldn't there be mentioned the Picture Control Handle (like IDC_PICCONTROL) and the declared...
Well thanks for the help to both.
For once, I've tried this:
BOOL SetStaticImg(HWND Dlg, INT Item, PCHAR ImageFile)
{ HANDLE img;
img =...
I see, no the problem is I just had to get used to it...
Now there's a little problem here...
I've found this in the SDK docs, but it doesn't seem to apply:
lResult=SendMessage( //...
Now that you mention that, I've downloaded all the SDK files, documents, compilers debuggers (about 1GB of stuff), and avoided to install .NET stuff.
However I find it all rather confusing, I...
Well, once again thanks.
Now that you said that the way I was "getting the IDs" was just a count of letters, it's true, and that is why I had two different strings giving me the same value.
I've...
Uhh, it's going to take a while to take that all in, I was getting the IDs like this:
void obtcomboconces(HWND hwnd)
{char buffer[256]; int id=0;
id=GetDlgItemText(hwnd,...
Is there something like:
LoadBitmap(hwnd,IDB_MYBMP);
in WinAPI to load a bitmap upon selecting a combobox item? Thanks.
@morongo, thanks man but I wasn't talking about an editbox, but of a listbox/combobx. thanks anyways.
@Tater yes, I know I still put them inside, it's just that I come from C/C++ programming where...
Since it's still followed... I've another simple question:
If I want to display a selected string from a Combobox, into a Static, by pressing a Button... what is missing/wrong here?:
char...
Sorry to have taken so long to answer xD a toolbar is giving me a hard time...
But yes, having replaced every "break;" with a "return 1;" solved it and now it works, thanks again!
Well I've tried doing it as you told me, but strangely it keeps closing both main and seconday dialogs, here is how it's going:
//PRINCIPAL DLG
case IDCANCEL:
...
Since the thread was continued, I'll throw a question:
I have a main dialog(dlg1), and a dialog that pops up after pressing a button in the main one (dlg2).
dlg2 has the DS_CONTROL in the...
1º You read the first post which was accidentally posted(sorry), but was basically the same.
2º IT WORKS, you're a real life saver!! All I needed to do is add the hwnd declaration in the MoveVar...
Sure, thanks for the help man... I don't know how else to search for this problem on the internet... no solution.
Here it goes:
HWND hwnd; //I've done this because if not it'd say hwnd is not...
Thanks a lot for the advice, yes it may be better to call functions from the cases rather than writing them there.
I understand the code you wrote for me (thanks by the way), and after reforming...
.... ?
Well I'm new in WinAPI, and can't figure why this does not work.
All I want to do is write a number in the edit box, and press a button to make the number appear in a CTEXT just below it. (and if...
Yes, currently, lack of time to study c++. (Just realised I posted it on C++ forum, sorry for that.)
But is it really better or simpler in C++? I mean, C one is pretty much simple.
Well...
Hello.
My question is the following, I want to save in a file / read from a file, an entire vector with different values in each position. But, if it is a very long vector... instead of doing...
Thank you "cas" and QuadraticFighte".
Regarding the first, I've decided to do it the old fashioned way as I have many vectors and would rather not have so many for's.
And for the second one, I...
Took them off.
Well, yes, the declaration should be a vector[5] you are right, but anyways the question doesn't have to do with that... I've put the declaration in the main post. Thanks for...