Recent Posts

Pages: [1] 2 3 ... 10
1
The Campus / new noob member :)
« Last post by div on Today at 07:39:03 PM »
good day! I'm going to learn assembly, no :cough: choice. I am a college student and we're going to make a project based on assembly + masm32

I don't understand a thing 'till now. my bad. but I found this great place. lucky me.  :biggrin:

I am a visual learner and I'm going to apologize beforehand for my brain. I can assure you that assembly really interest me, second to C. tho I hate to read. I dont think youtube has a great tutorials.

anyway, I welcome myself to the forums  :greenclp: and I hope I won't be banned for not posting.

sorry for my bad english. its not my first language, btw.

-student, frustrated programmer
2
The Campus / Re: WS_TABSTOP for Dialogs created with CreateDialogParam
« Last post by AW on Today at 07:05:40 PM »
I would suggest you to start a new thread for each new question because I rather prefer to answer only the questions I freely choose to.

Only for this one, you can't forget that a modeless dialog has its own message loop and certain types of messages, including WM_KEYDOWN and WM_KEYUP are directed to that message loop whenever the dialog has the focus.
3
MasmBasic & the RichMasm IDE / TitleCase$
« Last post by jj2007 on Today at 01:43:12 PM »
include \masm32\MasmBasic\MasmBasic.inc         ; download
  NoTitleCase$ equ <Chr$(".a.an.and.are.as.but.by.for.is.in.or.the.that.")>        ; this is the default, inspired by Lauren Ipsum, but you can use others
  Init 
  Let ecx="World bank and OECD are organisations that - as a rule - i consider very powerful"
  PrintLine ecx
  Inkey TitleCase$(ecx)
EndOfCode


Output:
Code: [Select]
World bank and OECD are organisations that - as a rule - i consider very powerful
World Bank and OECD are Organisations that - as a Rule - I Consider Very Powerful

Inspired by Munair on the FreeBasic forum :icon14:
4
The Campus / Re: new member
« Last post by Mikl__ on Today at 01:37:46 PM »
DzieƄ dobry, panie Rector 88! Witamy na forum!
5
The Campus / Re: WS_TABSTOP for Dialogs created with CreateDialogParam
« Last post by 2B||!2B on Today at 01:10:49 PM »
AW,

Thanks for your help.

I have one more question:

If i want to get WM_KEYDOWN/WM_KEYUP messages in my modaless dialog box how would i do so?

Because the IsDialogMessage/TranslateMessage convert them to WM_COMMAND and this message does not catch all keystrokes

I managed to add a filter before passing the message to translation with the above API's and then examine the message and if the message is WM_KEYDOWN/WM_KEYUP, i will pass it to the corresponding window directly using SendMessage and skip the message translation part.

Example for message loop:

Code: [Select]
    .WHILE TRUE
Skip:
        invoke GetMessage, addr msg, NULL, 0, 0
       
        .BREAK .if !eax
        .if msg.message == WM_KEYDOWN || msg.message == WM_KEYUP
       
        invoke SendMessage,CurrentActiveDialog,msg.message,msg.wParam,msg.lParam
        JMP Skip
        .endif
        invoke IsDialogMessage, CurrentActiveDialog, addr msg
       
        .if EAX == 0

        Invoke TranslateMessage, addr msg
            Invoke DispatchMessage, addr msg
        .endif
       
    .ENDW

Is there something wrong by doing this?

Because i want to catch all pressed keystrokes, if i don't look for WM_KEYDOWN/WM_KEYUP, the keystroke will come as a WM_COMMAND but the problem here is that this message does not provide all keystrokes (for example, the CTRL or SHIFT are never delivered)

6
The Campus / Re: new member
« Last post by felipe on Today at 11:50:29 AM »
Welcome  :icon14: Intel manuals are freely available for you in their site.  :idea:
7
The Campus / Re: new member
« Last post by jj2007 on Today at 11:49:40 AM »
search the forum and the old forum

Direct links:
http://masm32.com/board/index.php?action=search;advanced;search=
http://www.masmforum.com/board/index.php?action=search;advanced

The \Masm32\Examples and \Masm32\Help folders are also excellent sources of inspiration. And don't hesitate to post here, we don't bite newbies.

Welcome to the Forum :icon14:
8
Romper Room / Re: Windows 3.10 simulation
« Last post by jj2007 on Today at 11:46:00 AM »
Madness :greenclp:
9
MasmBasic & the RichMasm IDE / Re: Cairo
« Last post by jj2007 on Today at 11:31:19 AM »
And s$Len?  :biggrin:

Umpf :(

It seems I'll have to update the package soon, too many recent additions...

include \masm32\MasmBasic\Res\MbGui.asm
Event Paint
  invoke TextOut, PtDC, 10, 10, Str$("Ticks=%i", rv(GetTickCount)), s$Len
  invoke TextOut, PtDC, 10, 30, Chr$("c$Len and s$Len are designed specifically for TextOut"), c$Len
GuiEnd
10
The Campus / Re: new member
« Last post by FORTRANS on Today at 09:43:19 AM »
Hi,

   Welcome to the forum.  As for learning, find a question you
find interesting and search the forum and the old forum.  Lots
of posts to look through.

Cheers

Steve N.
Pages: [1] 2 3 ... 10