I had this problem recently. I'm not sure why it is happening! A quick
SendMessage(hwndcontrol,WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),MAKELPARAM(1,0)); in WM_CREATE sorted it our...
Type: Posts; User: chrishowarth
I had this problem recently. I'm not sure why it is happening! A quick
SendMessage(hwndcontrol,WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),MAKELPARAM(1,0)); in WM_CREATE sorted it our...
OK, thanks. Of course, yes, but it would be better to have an error message alerting the user if an error did occur, rather than the program crashing.
Thankyou! ~
Chrishowarth
Hi~
I understand that there is an exception throwing mechansim in C++. I was experimenting with it the other day - but can I use it to check for random exceptions, i.e. "An unexpected error has...
It works!!! Thankyou all so much :D Sorry I am a bit slow.
I've almost finished my app, and I'm learning more from creating this than I did with the tutorials. Of course I read the tutorials, but making a program is helping me understand it.
Thanks!...
char szTitle[256]={'\0'};
GetDlgItemText(hwnd, EditTitle, szTitle, sizeof(szTitle));
I unfortunately get these errors:
invalid conversion from 'HWND__*' to 'int'
initialising...
OK thanks. I'll try that.
Oh yes, I forgot to include that in my code snippet... What i dont get is the Long Pointer to the buffer that is to receive the text. How do I just get it to return a value? :S
Hi ~
I'm trying to use WM_GETTEXT to retrieve the contents of an edit box, "EditTitle".
The syntax for WM_GETTEXT is as follows:
WM_GETTEXT wParam = (WPARAM) cchTextMax;
lParam =...
Ah thankyou!
Hi ~
I found this code on Planet Source Code. It performs some file I/O to read ID3 tags in MP3 files. Here it is:
class ID3struct
{
public:
char TID[3];
Hello ~
I'm writing a GUI program which reads and edits ID3 tag data from MP3s. However, I am having a little problem extracting some of the data. I am sure that this is something simple that I...
Thanks! It works; thanks!
Hi
Oddly, the text on my buttons and in my edit boxes has all turned out bold. It there any way to rectify this? Here is the code is used to create a button:
HWND SaveBtn;
...
There are no 'simple' ways to create a Graphic User Interface. A blank windows requires approximately 77 lines of code. However, you can read a tutorial by theForger here:...
Ah, thanks.
What do you mean?
Hello!
I'm using a DLL in my project (not created by me), and I would like to load it statically, because I heard somewhere that it is easier to load statically than dynamically? I have the .lib...
I cannot find a tutorial or book for this - I have looked. I though someone might like to help.
Hi ~
I'm starting off Windows programming with a simple program to manipulate MP3 file data. When a file is opened I plan to display the info in some regular static text boxes (like the 'title'...
I'm glad I'm not alone!
Note: In the post mentioned by Ken Fitlike is talks about an 'XN Resource Editor'. I downloaded it, but I doesn't seem to create .rc files... maybe was wrong about...
I've had a look, I'm gonna check whether they're what I'm looking for.
Think of pointers as the 'Shortcuts' you can create in Windows to files - only C++ pointers point to units of memory. You create a pointer like this: type it will point to* It's name.
Then, to...
Oh yes, thanks!
Hello ~
I'm creating a DLL that (basically) reads and writes ID3 data from MP3s. How can I, using the Standard Library (or fstream.h), read exactly 30 bytes, then another lump of data of specific...