Description:
32-bit Windows programming interfaces.
|
|
|
Why this code don't function?
|
| |
Hi all
This code is compiling with MinGW on WinXp.
Why this code don't function?
The file Myfile.txt, is not created and saved.
OPENFILENAME ofn;
HANDLE hf;
HWND hwnd = NULL;
char FileName[1024]="MyFile.txt";
memset(&ofn, 0, sizeof(ofn));
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);... more »
|
|
LoadImage + IMAGE_ICON -> how to select a sub-icon ?
|
| |
Hello All,
I never noticed it before, but I've got a bit of a problem with the
LoadImage function: I'm using it to load a 16x16 image from an Icon (which I
subsequently use in the SystemTray), but what gets displayed is a schrunken
version of the 32x32 sub-icon, not the -- better fitting -- 16x16 sub-icon.... more »
|
|
Search substring in to string
|
| |
Hi
I compile with MinGW program console write in C.
What function Win32 API, to use for search substring in to string?
Thanks in advance
Regards
|
|
Why is a groupbox built from a Button control ?
|
| |
Hello All,
Just this week my eye fell on something that I can not quite figure out: A
GroupBox is a Button control with the BS_GROUPBOX style set. As a groupbox
it does not seem to respond to keypresses or mouseclicks. It behaves like
its a static control.
So, why didn't they just use a Static control for it instead ? Or have I... more »
|
|
An editbox with history. Is there a standard solution available ?
|
| |
Hello All,
Is there a standard solution to adding history to a single-line editbox ?
-- Background:
I thought it would be nice to add a history to a single-line editbox, so I
could quickly recover previously entered lines and than apply changes.
After some googleing on the subject (win32 editbox history) and finding... more »
|
|
Freeing memory doesn't show the released memory in taskmgr
|
| |
Hello Group,
i'm using malloc() to allocate some memory. My (ugly) testcode look's
like this:
char* mymy[6];
for (int i = 0; i < 5; ++i) {
mymem = GetProcessMemUsage(NULL);
cout << "ALLOC: RAM USED: " << ByteConv(mymem,
ByteConv_KiloBytes) << endl;
mymy[i] = (char*)malloc(65535);
Sleep(3000);... more »
|
|
|