Search:
Type: Posts; User: Arianax
Search:
Search took 0.02 seconds.
-
January 5th, 2022, 08:06 AM
Hi all,
Using the PlgBlt() function to draw rotated bitmap of a sprite to the screen.
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-plgblt
I'm specifically using the...
-
January 3rd, 2022, 11:29 AM
Ok, so I've tried some mathematical transforms on the three (X, Y) coords required by the PlgBlt() function instead...
Problem is, the origin of rotation seems to be stuck to (0,0) (The Upper-left...
-
January 2nd, 2022, 07:04 AM
Hi all,
This is all way over my head...
Any ideas how to rotate a bitmap by a specified angle in WinAPI?
I was told to use SetWorldTransform() and an xForm structure.
However, I'm not...
-
April 1st, 2021, 07:38 AM
I'm coding a program that, ideally, will work on Windows AND Linux. I would also, as a bonus, like it to work on Android.
I need a way to wait for keyboard presses from the user. Not using 'cin'...
-
March 19th, 2021, 01:55 PM
SOLUTION
The solution appears to be correct use of the function SetConsoleWindowInfo().
By setting the dimensions of the console to the exact size of the buffer you don't trigger text...
-
March 19th, 2021, 12:46 PM
Yes, I followed this guide. It's quite effective.
I also didnt know you could use
~WS_STYLENAME in the SetWindowLongA function to REMOVE WS_STYLE messages...
Unfortunately, if the user...
-
March 19th, 2021, 11:56 AM
I'm a beginner.
What do you mean by "subclass the console"?
-
March 19th, 2021, 08:37 AM
I write to the console as follows:
I have an wchar_t* array of 3600 characters.
The console has 120 characters per line and 30 lines (so that's 120 * 30 = 3600).
I fill the character array...
-
March 18th, 2021, 04:01 PM
Is there a way to prevent the text displayed in the Windows Console from rearranging when you resize the window?
When you resize the window the text reformats itself to accommodate the new size.
...
-
July 20th, 2019, 11:14 AM
I'm getting a ton of seemingly random Exception Errors when doing Process Walking with Process32Next() and when enumerating Services associated with the process SvcHost.exe (found during Process...
-
July 20th, 2019, 05:32 AM
The code is still triggering a range of Exception Errors if it is run more than once during the same execution...
When I close the window that outputs the data from GetProcessNext() and...
-
July 19th, 2019, 10:22 AM
Found a fairly comprehensive set of functions() to do the requested operations now... especially thanks to your input @VictorN and @IgorVartanov :
if(handleName != INVALID_HANDLE_VALUE &&...
-
July 14th, 2019, 04:31 PM
Yes, I know.
EnumServicesStatusEx(SCM, SC_ENUM_PROCESS_INFO, SERVICE_WIN32, SERVICE_ACTIVE, NULL, 0, &pcbBytesNeeded, &lpServicesReturned, &lpResumeHandle, NULL);
if(GetLastError() ==...
-
July 14th, 2019, 03:01 PM
Could you provide sample allocation code?
I think I might be getting it wrong since I use the name of my LPENUM_SERVICE_STATUS_PROCESS struct as the handle to the memory allocation:
...
-
July 14th, 2019, 02:05 PM
This is in C/C++:
I'm doing Process Walking ( https://docs.microsoft.com/en-us/windows/win32/toolhelp/process-walking ) through a PROCESSENTRY32 struct made with...
-
July 14th, 2019, 01:12 PM
Got another question:
About Memory Management in EnumServicesStatusEx().
What's the best way to capture the amount of memory needed from the first call to EnumServicesStatusEx() (where the 5th...
-
July 10th, 2019, 04:07 PM
It seems it's far more simple to iterate through the LPENUM_SERVICE_STATUS_PROCESS struct than I previously guessed or grasped...
I used this code, supplied for those who might also encounter this...
-
July 10th, 2019, 11:49 AM
The documentation advises against using that function because it changes with updates to the OS so its functionality cannot be guaranteed.
I was thinking more along the lines of finding out a...
-
Yes, of course.
I'm aiming to try to list the Services hosted by each instance of 'SvcHost.exe'. I iterate through each process using Process32First and then Process32Next (called 'Process...
-
I have created a SnapShot of all the processes running by using CreateToolHelp32Snapshot.
I then iterate through all the processes by using Process32First and Process32Next as detailed in the...
-
June 24th, 2019, 07:58 AM
Aaaaaand, it turns out the Checkbox automatically draws a focus rect when clicked on or when highlighted with tab.
I just had a background that made it impossible to see the focus rect...
For...
-
June 24th, 2019, 07:52 AM
Answering my own question here, heheh:
Use GetDC(the Checkbox's HWND);
-
June 24th, 2019, 07:25 AM
Can't seem to infer how to get a focusrect (dotted-line rectangle) around a WinAPI checkbox.
Have tried DrawFocusRect() and also SendMessage() using SET_FOCUS. Maybe I got some parameters wrong?...
-
Oh I found the error...
I was forgetting to call DefWindowProc(hWnd, msg, WP, LP); in my AboutProc message handler:
LRESULT CALLBACK AboutProc(HWND hWnd, MSG msg, WPARAM WP, LPARAM LP)
{
-
The dialog box doesn't appear.
Main window becomes inactive when I call CreateWindow() but no Dialog Box appears.
|
Click Here to Expand Forum to Full Width
|