flat assembler
Message board for the users of flat assembler.

Index > Windows > how a win-program can open a windows at screenposition x,y ?

Author
Thread Post new topic Reply to topic
eisbaer



Joined: 25 Nov 2012
Posts: 8
eisbaer 15 Apr 2014, 00:41
i think
i can open a windows on the screen
with
---
invoke CreateWindowEx, ....
---
but the accurate syntax i dont know
---
i have for example a screen with 1920 x 1080 pixel

upper left corner = position 0,0
lower right corner = position 1920,1080

i want to have 6 programs - each opens a window of 820 x 240 pixel

1. program should open a window
from position 0,0 to position 820,240

2. program should open a window
from the position 0,241 to position 820,480

3. program should open a window
from the position 0,481 to position 820,720

4. program should open a window
from the position 821,0 to position 1640,240

5. program should open a window
from the position 821,241 to position 1640,480

6. program should open a window
from the position 821,481 to position 1640,720

+---------+---------+
| 1 | 4 |
+---------+---------+
| 2 | 5 |
+---------+---------+
| 3 | 6 |
+---------+---------+

is there an easy way do this?
can you help me to solve this problem?

best regards

_________________
best regards

PLEASE! KEEP IT SHORT and SIMPLE!
Make everything as simple as possible,
but not simpler - and keep it running!
Post 15 Apr 2014, 00:41
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 15 Apr 2014, 01:03
This is the first result in google: http://msdn.microsoft.com/en-us/library/windows/desktop/ms632680%28v=vs.85%29.aspx

Just set x and y to the upper-left point of each window.
Post 15 Apr 2014, 01:03
View user's profile Send private message Visit poster's website Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1670
Location: Toronto, Canada
AsmGuru62 15 Apr 2014, 02:56
I suspect that all these windows are a child windows in the frame.
If so, it gets a little more complicated.
Post 15 Apr 2014, 02:56
View user's profile Send private message Send e-mail 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.