Search:
Type: Posts; User: MasterDucky
Search:
Search took 0.05 seconds.
-
November 2nd, 2023, 07:27 AM
I found it:
Its text first, ID after.
PUSHBUTTON "OK", IDOK,10,40,90,20,WS_TABSTOP
Thanks for the help!
-
November 2nd, 2023, 07:21 AM
PUSHBUTTON IDOK,"OK",10,40,90,20,WS_TABSTOP
It wont compile, I get error on next line:. error RC2116 : expecting number for ID
-
November 2nd, 2023, 05:00 AM
Yes, but the ID was defined above.
And even if I just put a number in the place of IDC_PASSWORD I get the same error.
-
November 2nd, 2023, 04:44 AM
Hello,
I have this error on the EDITEXT line when I try to compile this resource file.
I checked MSDN, the definition of EDITTEXT seems to be fine.
If I remove "pass", I get a second error too:...
-
January 1st, 2023, 12:16 PM
-
December 31st, 2022, 06:19 AM
Ah, OK, I understand, so there is a difference between declaring and initializing.
Since it was declared before WM_CREATE I thought it would be global in WindowFunc.
Thank you very much and...
-
December 31st, 2022, 04:41 AM
Hello,
Why cant I insert a string to my ListBox?
When I click on the button nothing happens.
#include <windows.h>
#include <iostream>
-
Of course, how could I miss it that NMHDR hdr; was also a member of NMLISTVIEW structure.
Ive learned something and its working, thank you very much Victor! :)
-
Hello
I read it on MSDN that it should be sent through WM_NOTIFY.
And that the iSubItem number has to be put in a NMLISTVIEW structure.
But where do I put the NMLISTVIEW structure to tell it...
-
1. Same with WM_ACTIVATE, no redrawing.
2. Same with DefWindowsProc() put into WW_ACTIVATE, no redrawing.
-
It's working without it like before, except for the frame redrawing on focus.
It still draws the frame on window creation.
-
I dont know, I just copied the code from somewhere.
-
1. No DefWindowProc() call in WM_NCPAINT.
2. Lot of messages after WM_NCPAINT: WM_ERASEBACKGROUND, WM_ACTIVATE, WM_ACTIVATEAPP, WM_CTLCOLORSTATIC etc..
case WM_COMMAND:
...
-
Very good idea!
I looked up in spy++, a lot of messages sent just by touching the window with the mouse.
I chose WM_SETFOCUS and put RedrawWindow() there. Then I compiled it and interestingly...
-
Thank you, it's working with your definition of
RedrawWindow(hwnd, NULL, NULL, RDW_FRAME | RDW_INVALIDATE);
but it wont stop sending WM_NCPAINT messages now and it's flickering.
Surely...
-
Thank you.
I tried spy++ but I cant see the WM_NCPAINT message triggered.
I also tried the solutions proposed in your link, without success.
-
So where should I call it from or why doesnt Windows send a message when it is invalidated?
-
Yes, I put it into WM_PAINT because the main area gets redrawn but it didnt call WM_NCPAINT.
-
Hi
I drew the window frame in WM_NCPAINT message but when the window loses focus
the frame wont get drawn again, WM_NCPAINT not getting called again.
How to call WM_NCPAINT again?
Should I...
-
April 30th, 2019, 12:02 PM
-
April 30th, 2019, 10:51 AM
I tried to use AllocConsole() but cout or printf wont print anything to the console.
-
April 30th, 2019, 10:35 AM
Thank you very much for your response 2kaud, it solved the problem! :)
Actually I was handeling the WM_PAINT message but I removed it for simplicity's sake as it was causing the same symptom.
...
-
April 30th, 2019, 04:43 AM
Hi
I'm getting 100% CPU usage because of WM_PAINT is getting called all the time.
I simplified the code to a maximum to eliminate the culprit but still getting 100% cpu usage.
#include...
-
December 3rd, 2015, 12:40 PM
Ah, OK I understand now, thanks!
-
December 1st, 2015, 03:47 AM
I dont do it on purpose. Im using GetDC(myBox); which you can use outside of WM_PAINT.
|
Click Here to Expand Forum to Full Width
|