Recent Posts

Pages: [1] 2 3 ... 10
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
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.
MasmBasic & the RichMasm IDE / TitleCase$
« Last post by jj2007 on Today at 01:43:12 PM »
include \masm32\MasmBasic\         ; download
  NoTitleCase$ equ <Chr$("")>        ; this is the default, inspired by Lauren Ipsum, but you can use others
  Let ecx="World bank and OECD are organisations that - as a rule - i consider very powerful"
  PrintLine ecx
  Inkey TitleCase$(ecx)

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:
The Campus / Re: new member
« Last post by Mikl__ on Today at 01:37:46 PM »
DzieƄ dobry, panie Rector 88! Witamy na forum!
The Campus / Re: WS_TABSTOP for Dialogs created with CreateDialogParam
« Last post by 2B||!2B on Today at 01:10:49 PM »

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]
        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
        invoke IsDialogMessage, CurrentActiveDialog, addr msg
        .if EAX == 0

        Invoke TranslateMessage, addr msg
            Invoke DispatchMessage, addr msg

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)

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:
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:;advanced;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:
Romper Room / Re: Windows 3.10 simulation
« Last post by jj2007 on Today at 11:46:00 AM »
Madness :greenclp:
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
The Campus / Re: new member
« Last post by FORTRANS on Today at 09:43:19 AM »

   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.


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