Yup, that's what i'm looking for, with just the resource ID. Something like:
HWND parentHwnd = GetParentHWND(IDC_EDITCONTROL);
Type: Posts; User: -leech-
Yup, that's what i'm looking for, with just the resource ID. Something like:
HWND parentHwnd = GetParentHWND(IDC_EDITCONTROL);
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.
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.
I've changed it from
char *buf = "";
to
char buf[255];
... still doesn't work.
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...
Here's my DialogProc:
BOOL CALLBACK DlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam)
{
switch(Message)
{
case WM_INITDIALOG:
SendMessage(hDlg,...
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.
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...
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 ;)
Could you maybe give me an example, strings aren't exactly my forte ;)
Thanks.
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...
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...
Use the modulus (%) sign. For example: 5 % 2 == 1.
I just upgraded from VC6 to VC.NET and i can't find the profiling option anywhere...
:confused:
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...
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...
http://ps2dev.livemedia.com.au/
As i said:
Me, having the official SDK? I wish ;)
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...
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...
They're only teaching us friggin JAVA... ughgshgh!!ddaqe2!
I'd like to know that as well.
Yup, great article, but i still feel OpenGL has the edge due to it's ease of use...
Actually, i'm doing this through the API (not MFC) using C.
Thanks anyways :)
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...