Keya
Thank you!
Search found 12 matches
- Fri Dec 16, 2016 10:25 am
- Forum: Coding Questions
- Topic: Data() is works correctly?
- Replies: 2
- Views: 1335
- Fri Dec 16, 2016 8:47 am
- Forum: Coding Questions
- Topic: Data() is works correctly?
- Replies: 2
- Views: 1335
Data() is works correctly?
PB 4.4-5.3 and higher, W7_x23/x64
1. this code:
BufferSize=255
RegOpenKeyEx_(#HKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Windows NT\CurrentVersion",0,#KEY_QUERY_VALUE+256,@Key)
RegQueryValueEx_(Key, "InstallDate", 0, @Type, @Buffer, @BufferSize)
RegCloseKey_(Key)
MessageBox_(0,FormatDate("%dd.%mm ...
1. this code:
BufferSize=255
RegOpenKeyEx_(#HKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Windows NT\CurrentVersion",0,#KEY_QUERY_VALUE+256,@Key)
RegQueryValueEx_(Key, "InstallDate", 0, @Type, @Buffer, @BufferSize)
RegCloseKey_(Key)
MessageBox_(0,FormatDate("%dd.%mm ...
- Wed Aug 06, 2014 4:23 pm
- Forum: Coding Questions
- Topic: 5.30 SendMessageCallback don't work
- Replies: 6
- Views: 1782
Re: 5.30 SendMessageCallback don't work
Bisonte
Thank you! Actually, everything is simple. But these changes occurred from version 5.20. In the certificate is not written. I did not realize it himself.
Thank you! Actually, everything is simple. But these changes occurred from version 5.20. In the certificate is not written. I did not realize it himself.
- Wed Aug 06, 2014 11:03 am
- Forum: Coding Questions
- Topic: 5.30 SendMessageCallback don't work
- Replies: 6
- Views: 1782
Re: 5.30 SendMessageCallback don't work
Sorry for my English.
Procedure WndProc(hWnd,msg,wParam,lparam)
If hWnd = WindowID(0)
Select msg
Case #WM_LBUTTONDOWN
ReleaseCapture_()
SendMessage_(hWnd,#WM_SYSCOMMAND,#SC_MOVE|#HTCAPTION,0)
Case #WM_COMMAND
If wParam= 1+#PB_EventType_LeftClick<<16
; PostMessage_(WindowID(0),#PB_Event ...
Procedure WndProc(hWnd,msg,wParam,lparam)
If hWnd = WindowID(0)
Select msg
Case #WM_LBUTTONDOWN
ReleaseCapture_()
SendMessage_(hWnd,#WM_SYSCOMMAND,#SC_MOVE|#HTCAPTION,0)
Case #WM_COMMAND
If wParam= 1+#PB_EventType_LeftClick<<16
; PostMessage_(WindowID(0),#PB_Event ...
- Wed Aug 06, 2014 1:51 am
- Forum: Coding Questions
- Topic: 5.30 SendMessageCallback don't work
- Replies: 6
- Views: 1782
Re: 5.30 SendMessageCallback don't work
Yes, it works: PostEvent(#PB_Event_CloseWindow)
But only in v5.30! In v5.20 and earlier versions don't work.
Maybe I misused the function SendMessageCallback...
It is necessary to use PostMessage_(hWnd,#PB_Event_CloseWindow,0,0) - it works in all versions
The purpose of this reception is working ...
But only in v5.30! In v5.20 and earlier versions don't work.
Maybe I misused the function SendMessageCallback...
It is necessary to use PostMessage_(hWnd,#PB_Event_CloseWindow,0,0) - it works in all versions
The purpose of this reception is working ...
- Tue Aug 05, 2014 8:40 pm
- Forum: Coding Questions
- Topic: 5.30 SendMessageCallback don't work
- Replies: 6
- Views: 1782
5.30 SendMessageCallback don't work
code:
Procedure WndProc(hWnd,msg,wParam,lparam)
If hWnd = WindowID(0)
Select msg
Case #WM_LBUTTONDOWN
ReleaseCapture_()
SendMessage_(hWnd,#WM_SYSCOMMAND,#SC_MOVE|#HTCAPTION,0)
Case #WM_COMMAND
If wParam= 1+#PB_EventType_LeftClick<<16
SendMessageCallback_(hWnd,#PB_Event_CloseWindow,0,0 ...
Procedure WndProc(hWnd,msg,wParam,lparam)
If hWnd = WindowID(0)
Select msg
Case #WM_LBUTTONDOWN
ReleaseCapture_()
SendMessage_(hWnd,#WM_SYSCOMMAND,#SC_MOVE|#HTCAPTION,0)
Case #WM_COMMAND
If wParam= 1+#PB_EventType_LeftClick<<16
SendMessageCallback_(hWnd,#PB_Event_CloseWindow,0,0 ...
- Tue Mar 18, 2014 3:38 pm
- Forum: Announcement
- Topic: PureBasic 5.22 LTS final is out !
- Replies: 130
- Views: 59259
Re: PureBasic 5.22 LTS final is out !
code1
Value.l = 10 ; Declare our own variable
MOV Value, 20 ; Directly use the ASM keywords with PureBasic variable !
INC Value
MessageRequester("ASM Example", "Should be 21: "+Str(Value), 0)
without "EnableASM", but with check "enable asm inline" do not work
code2
Value.l = 10 ; Declare our ...
Value.l = 10 ; Declare our own variable
MOV Value, 20 ; Directly use the ASM keywords with PureBasic variable !
INC Value
MessageRequester("ASM Example", "Should be 21: "+Str(Value), 0)
without "EnableASM", but with check "enable asm inline" do not work
code2
Value.l = 10 ; Declare our ...
- Tue Mar 18, 2014 3:26 pm
- Forum: Announcement
- Topic: PureBasic 5.22 LTS final is out !
- Replies: 130
- Views: 59259
Re: PureBasic 5.22 LTS final is out !
Thank!
p/s/ The checkbox "enable inline asm syntax" do not work, and
straight assembler code (with "!") do not work..
p/s/ The checkbox "enable inline asm syntax" do not work, and
straight assembler code (with "!") do not work..
- Sun Jan 29, 2012 6:16 am
- Forum: Coding Questions
- Topic: dialogboxparam, WM_CTLCOLOREDIT and wParam
- Replies: 2
- Views: 1267
Re: dialogboxparam, WM_CTLCOLOREDIT and wParam
Thanks! Danilo
- Sun Jan 29, 2012 3:42 am
- Forum: Coding Questions
- Topic: dialogboxparam, WM_CTLCOLOREDIT and wParam
- Replies: 2
- Views: 1267
dialogboxparam, WM_CTLCOLOREDIT and wParam
I have a code on masm32, it's work - edit text and background change color:
.386
.model flat,stdcall
option casemap:none
include c:\masm32\include\windows.inc
include c:\masm32\include\kernel32.inc
include c:\masm32\include\user32.inc
include c:\masm32\include\gdi32.inc
includelib c:\masm32 ...
.386
.model flat,stdcall
option casemap:none
include c:\masm32\include\windows.inc
include c:\masm32\include\kernel32.inc
include c:\masm32\include\user32.inc
include c:\masm32\include\gdi32.inc
includelib c:\masm32 ...
- Wed Jun 22, 2011 8:34 pm
- Forum: Coding Questions
- Topic: Dialog boxes in PureBasic
- Replies: 26
- Views: 4872
Re: Dialog boxes in PureBasic
Thanks! ts-soft, USCode
- Wed Jun 22, 2011 7:03 pm
- Forum: Coding Questions
- Topic: Dialog boxes in PureBasic
- Replies: 26
- Views: 4872
Re: Dialog boxes in PureBasic
Hi All!
sorry for my english..
Help to use "winapi DialogBoxParam" with .rc file
Procedure.l dlg(Wnd, Message, wParam, lParam)
www.l=1
If Message=#WM_INITDIALOG
ShowWindow_(Wnd, #SW_SHOWNORMAL)
ElseIf Message=#WM_CLOSE
EndDialog_(Wnd,0)
EndIf
ProcedureReturn www
EndProcedure
hinst ...
sorry for my english..
Help to use "winapi DialogBoxParam" with .rc file
Procedure.l dlg(Wnd, Message, wParam, lParam)
www.l=1
If Message=#WM_INITDIALOG
ShowWindow_(Wnd, #SW_SHOWNORMAL)
ElseIf Message=#WM_CLOSE
EndDialog_(Wnd,0)
EndIf
ProcedureReturn www
EndProcedure
hinst ...