flat assembler
Message board for the users of flat assembler.

Index > Windows > WinAPI components window, button, static text, dialog?

Author
Thread Post new topic Reply to topic
SeryZone



Joined: 20 Dec 2013
Posts: 38
Location: Ukraine, Kryviy Rih
SeryZone 06 Apr 2014, 16:28
How to make in window this elements: window, button, static text, dialog???

I can't find any information by buttons.

Code:
format PE GUI 5.0

include 'win32wx.inc'

.code
start:

invoke CreateWindowEx,0,'STATIC',0,WS_VISIBLE+WS_OVERLAPPEDWINDOW,0,0,640,480,0,0,0,0
mov    [wnd],eax
invoke CreateWindowEx,0,classb,textg,WS_VISIBLE+ WS_CHILD+ BS_GROUPBOX,5,5,240,150,[wnd],1000,[hInstance],0

invoke CreateFile,kfbfile,GENERIC_READ,0,0,OPEN_EXISTING,0,0
    mov    ebx,eax
    invoke ReadFile,ebx,BitmapHeader,sizeof.BITMAPFILEHEADER,n,0
    invoke CloseHandle,ebx

.data

    kfbfile dd ?
    wnd          rd 1
    msg          MSG

.end start    


I want to make dialog, that opens by button, that can choose KFB file. So, code is full of mistakes, help me please!
Post 06 Apr 2014, 16:28
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 06 Apr 2014, 17:31
SeryZone,

May EXAMPLES/DIALOG/DIALOG.ASM be of any help?
Post 06 Apr 2014, 17:31
View user's profile Send private message Reply with quote
SeryZone



Joined: 20 Dec 2013
Posts: 38
Location: Ukraine, Kryviy Rih
SeryZone 06 Apr 2014, 18:32
baldr wrote:
SeryZone,

May EXAMPLES/DIALOG/DIALOG.ASM be of any help?


No-no, Image
Here, this dialog)))
Post 06 Apr 2014, 18:32
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1403
Location: Piraeus, Greece
Picnic 07 Apr 2014, 05:24
Hi SeryZone,

Search forum for GetOpenFileName - GetSaveFileName

There is also a sample by bzdashek demostrating the new Common Item Dialog interface, like the one in your photo.

http://board.flatassembler.net/topic.php?t=14106
Post 07 Apr 2014, 05:24
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 07 Apr 2014, 05:36
SeryZone: baldr also introduced you to the common dialog boxes here.
Post 07 Apr 2014, 05:36
View user's profile Send private message Visit poster's website Reply with quote
SeryZone



Joined: 20 Dec 2013
Posts: 38
Location: Ukraine, Kryviy Rih
SeryZone 07 Apr 2014, 13:39
Ooops... I need explaining...
Post 07 Apr 2014, 13:39
View user's profile Send private message Reply with quote
El Tangas



Joined: 11 Oct 2003
Posts: 120
Location: Sunset Empire
El Tangas 13 Apr 2014, 10:25
I think you may need to read some more on how win32 works from an assembly point of view. I'm not familiar with delphi, but being an HLL it will probably hide all kinds of stuff from you that in assembly you will have to do by hand to get a program to work.

For example, see if you are familiar with all the concepts in this tutorial (it's in C, it's an HLL but so close to assembly that you can extrapolate the concepts).

Maybe you should also install this standalone version of MSDN library for reference and some examples.
Post 13 Apr 2014, 10:25
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.