Search found 483 matches

by Josep Roca
Mar 15, 2020 12:47
Forum: Windows
Topic: Messagebox timeout
Replies: 11
Views: 837

Re: Messagebox timeout

As it is the norm in Windows, MessageBoxTimeoutIndirectA delegates the work to MessageBoxTimeoutIndirectW: { MSGBOXPARAMSW msgboxW; UNICODE_STRING textW, captionW; int ret; if (!IS_INTRESOURCE(lpText)) RtlCreateUnicodeStringFromAsciiz(&textW, (PCSZ)lpText); else textW.Buffer = (LPWSTR)lpText; if...
by Josep Roca
Mar 15, 2020 12:41
Forum: Windows
Topic: Messagebox timeout
Replies: 11
Views: 837

Re: Messagebox timeout

"It is unlikely that Microsoft will depricate this function for quite some time because all of the standard MessageBox API calls actually call MessageBoxTimeOutA or MessageBoxTimeoutW and pass $FFFFFFFF as the timeout period meaning the dialog will wait a very long time, approx 49 days!" ...
by Josep Roca
Mar 15, 2020 12:26
Forum: Windows
Topic: Messagebox timeout
Replies: 11
Views: 837

Re: Messagebox timeout

I have modified my post because the wrapper was using a wrong logic. It was calling the default MessageBox if the call to DyLibLoad failed, when it must do it if the call to DyLibSymbol fails.
by Josep Roca
Mar 15, 2020 11:32
Forum: Windows
Topic: Messagebox timeout
Replies: 11
Views: 837

Re: Messagebox timeout

Although MessageBoxTimeout is undocumented, it has been available and unaltered since Windows XP. The following wrapper function loads it dynamically and, if unavailable, it defaults to a regular MessageBox. ' ======================================================================================== '...
by Josep Roca
Mar 07, 2020 6:54
Forum: Windows
Topic: SystemTimeToFileTime
Replies: 23
Views: 1418

Re: SystemTimeToFileTime

Thanks for bringing up attention about CPowerTime. I have modified it to remove the limitation checks to the methods AddMinutes, AddSeconds, etc. These limitations did not make sense in this class. With the modified code, that I have uploaded to https://github.com/JoseRoca/WinFBX/tree/master/Afx , I...
by Josep Roca
Feb 22, 2020 13:31
Forum: Windows
Topic: WinFBX - emulate a button click
Replies: 21
Views: 1030

Re: WinFBX - emulate a button click

> It is worth mentioning that when your code says "clicked" that is all that it is doing. Indeed. I have no idea of what you want to do when the button is clicked. I have removed AfxMsg and added code to write and read to an .ini file. CASE WM_COMMAND SELECT CASE GET_WM_COMMAND_ID(wParam, ...
by Josep Roca
Feb 22, 2020 10:40
Forum: Windows
Topic: WinFBX - emulate a button click
Replies: 21
Views: 1030

Re: WinFBX - emulate a button click

Int this example, AfxMsg "Clicked" is only used to let you know that the message has been fired and processed. Remove it and put the code you wish. #define UNICODE #INCLUDE ONCE "Afx/CWindow.inc" USING Afx #define MyButton 1001 DECLARE FUNCTION WinMain (BYVAL hInstance AS HINSTAN...
by Josep Roca
Feb 22, 2020 8:46
Forum: Windows
Topic: WinFBX - emulate a button click
Replies: 21
Views: 1030

Re: WinFBX - emulate a button click

Instead of SendMessage, use PostMessage

Code: Select all

PostMessage( pWindow.ControlHandle(IDC_Apply), BM_CLICK, 0, 0 )
by Josep Roca
Feb 21, 2020 22:16
Forum: Windows
Topic: WinFBX Check3State
Replies: 7
Views: 469

Re: WinFBX Check3State

Image
by Josep Roca
Feb 21, 2020 21:58
Forum: Windows
Topic: WinFBX Check3State
Replies: 7
Views: 469

Re: WinFBX Check3State

The appearance of Windows controls is not the same if you use themes. Using themes, the inderteminate state does not appear as greyed, but as a small black box, it seems.
by Josep Roca
Feb 21, 2020 20:53
Forum: Windows
Topic: WinFBX Check3State
Replies: 7
Views: 469

Re: WinFBX Check3State

???. It works fine in my computer.
by Josep Roca
Feb 03, 2020 11:24
Forum: Windows
Topic: WinFBX
Replies: 2
Views: 361

Re: WinFBX

> The checkbox is being added and is initially checked via the first two statements. How can it be possible? This small test works correctly: #define UNICODE #INCLUDE ONCE "Afx/CWindow.inc" USING Afx CONST IDC_CHECKBOX = 1001 DECLARE FUNCTION WinMain (BYVAL hInstance AS HINSTANCE, _ BYVAL ...
by Josep Roca
Jan 19, 2020 5:25
Forum: Beginners
Topic: SQLite seek and recordset
Replies: 9
Views: 758

Re: SQLite seek and recordset

Windows XP on a 4K monitor is completely unusable. See: https://external-preview.redd.it/x-UxJp6Gm7rWb4DhR9hbMDHXYsv7rnG4fl63sr2LuW0.jpg?auto=webp&s=3175728dc6b0acc1bfc7adb35c9635373e605035 Windows XP current share is a meager 1,29% See: https://gs.statcounter.com/os-version-market-share/windows...
by Josep Roca
Jan 18, 2020 4:02
Forum: Beginners
Topic: SQLite seek and recordset
Replies: 9
Views: 758

Re: SQLite seek and recordset

Whats wrong with the XP based Win32 API to not be used in the first place and only offer the "new" Win32 API calls Windows 7 support ended on January 14, 2020 And Windows XP support ended on April 8, 2014. What's wrong with XP based Win32 API? Among many other things, it has not support t...

Go to advanced search