Search found 42 matches
- Mar 07, 2020 1:23
- Forum: Windows
- Topic: SystemTimeToFileTime
- Replies: 23
- Views: 2002
Re: SystemTimeToFileTime
Minor observation. How about using GetSystemTimeAsFileTime()... ' ======================================================================================== ' Returns the current system time as a FILETIME structure. ' ====================================================================================...
- Nov 30, 2019 2:14
- Forum: Windows
- Topic: How to get the message time from message structure ?
- Replies: 9
- Views: 1318
Re: How to get the message time from message structure ?
Yep, I was using the older 1.05.0.
Code updated...
Code updated...
- Nov 29, 2019 22:42
- Forum: Windows
- Topic: How to get the message time from message structure ?
- Replies: 9
- Views: 1318
Re: How to get the message time from message structure ?
For the fun of it... #define JumpCompiler "<D:\Free\32\fbc.exe>" 'Compiler to use "< = left delimiter, >" = right delimiter #define JumpCompilerCmd "<-s console -w pedantic "D:\Free\bas\~~Default.rc">" 'Command line to send to compiler (gui or console) #Lang &...
- Nov 29, 2019 1:14
- Forum: Windows
- Topic: How to get the message time from message structure ?
- Replies: 9
- Views: 1318
Re: How to get the message time from message structure ?
(DWORD) .time is the number of milliseconds since the system was started.
A roll over will occur after 49.7 days.
A roll over will occur after 49.7 days.
- Sep 27, 2019 14:56
- Forum: Windows
- Topic: windows api splitbutton example?
- Replies: 5
- Views: 2700
Re: windows api splitbutton example?
Hi,
Depending on your IDE, be sure to have resource file
with a xml manifest file that ask for Microsoft.Windows.Common-Controls 6.0.
This is necessary for a split button.
Note that I updated the code to add ImageList_Destroy() in WM_DESTROY.
.rc resource and .xml manifest example
Depending on your IDE, be sure to have resource file
with a xml manifest file that ask for Microsoft.Windows.Common-Controls 6.0.
This is necessary for a split button.
Note that I updated the code to add ImageList_Destroy() in WM_DESTROY.
.rc resource and .xml manifest example
- Sep 27, 2019 3:33
- Forum: Windows
- Topic: windows api splitbutton example?
- Replies: 5
- Views: 2700
Re: windows api splitbutton example?
Here is one Nastasa... 'Be sure to have resource with a xml manifest 'that ask for Microsoft.Windows.Common-Controls 6.0. #Define JumpCompiler "<D:\Free\64\fbc.exe>" #Define JumpCompilerCmd "<-s gui -w pedantic "D:\Free\bas\~~Default.rc">" #Print Control resize #Print C...
- Nov 11, 2018 16:56
- Forum: Windows
- Topic: how to add system icon into resouce file?
- Replies: 2
- Views: 809
Re: how to add system icon into resouce file?
To elaborate a little... You don't need anything in the resource file. You can load the questionmark icon dynamically by using hIco = LoadImage(NULL, MAKEINTRESOURCE(OIC_QUES), IMAGE_ICON, 0, 0, LR_SHARED) or the older hIco = LoadIcon(NULL, IDI_QUESTION) A MsgBox with the questionmark can be called ...
- Oct 22, 2018 14:57
- Forum: Windows
- Topic: How to get notified when mouse enter controls
- Replies: 3
- Views: 896
Re: How to get notified when mouse enter controls
Great!
I'm glad to help a little. :-)
I'm glad to help a little. :-)
- Oct 21, 2018 21:11
- Forum: Windows
- Topic: How to get notified when mouse enter controls
- Replies: 3
- Views: 896
Re: How to get notified when mouse enter controls
Hey, This could be one way, using WM_SETCURSOR... #Define JumpCompiler "<D:\Free\64\fbc.exe>" #Define JumpCompilerCmd "<-s gui -w pedantic "D:\Free\bas\~~Default.rc">" #define unicode #Include Once "windows.bi" #Include Once "win\shellapi.bi" #Define...
- Oct 20, 2018 15:55
- Forum: Windows
- Topic: please test my crappy owner-draw menu
- Replies: 36
- Views: 8696
Re: please test my crappy owner-draw menu
José, I did a quick test in PowerBASIC, So to be clear, in fb, rgb() is bgr() and bgr() is rgb(). Yep, having those letters reverse is really a counter intuitive surprise! The kind of thing you cannot forget once you know it... Colour = rgb(&h11,&h22,&h33) ColourRed = GetRValue(Colour) '...
- Oct 20, 2018 15:30
- Forum: Windows
- Topic: please test my crappy owner-draw menu
- Replies: 36
- Views: 8696
Re: please test my crappy owner-draw menu
Hola José, Despite the note about the macro, I based my conclusion on the result of the following code where rgb() and bgr() do not give the same colour order. MessageBox(HWND_DESKTOP, "rgb(&hAA, &hBB, &hCC) = 0x" & HEX(rgb(&hAA, &hBB, &hCC), 8) ...
- Oct 20, 2018 15:09
- Forum: Windows
- Topic: please test my crappy owner-draw menu
- Replies: 36
- Views: 8696
Re: please test my crappy owner-draw menu
Hi David,
Still off topic: Agreed, it might be my imagination
but I feel there is a lot of new peoples now posting
who probably didn't wanted to get involved with him.
Life is good! :-)
Still off topic: Agreed, it might be my imagination
but I feel there is a lot of new peoples now posting
who probably didn't wanted to get involved with him.
Life is good! :-)
- Oct 19, 2018 20:09
- Forum: Windows
- Topic: please test my crappy owner-draw menu
- Replies: 36
- Views: 8696
Re: please test my crappy owner-draw menu
I see, The colors where fine on my side, this is a good thing that yours where not. I was literraly doing a GetSysColor(GetSysColor(Colour)), plus I had many more issues. I did updated the code. Finally, except for the rgba() vs rgb() correction and the "if wParam = NULL" in WM_MEASUREITEM...
- Oct 19, 2018 17:04
- Forum: Windows
- Topic: please test my crappy owner-draw menu
- Replies: 36
- Views: 8696
Re: please test my crappy owner-draw menu
Some quick observation... CreateSolidBrush() ask for RGB, so BGR is to be avoided or the colours won't match. FB's rgb() automatically set the alpha channel to &hFF for opaque. bgr() does not, leaving it to &H00. This is the reason why it worked. With CreateSolidBrush() the high-order byte m...
- Oct 19, 2018 16:23
- Forum: Windows
- Topic: please test my crappy owner-draw menu
- Replies: 36
- Views: 8696
Re: please test my crappy owner-draw menu
kcvinu & jj2007,
"Everything is in black backcolor"
Did you have black menus with the updated code I posted?
"Everything is in black backcolor"
Did you have black menus with the updated code I posted?