flat assembler
Message board for the users of flat assembler.

Index > Windows > APPBAR Example ...

Author
Thread Post new topic Reply to topic
ProggieAbe



Joined: 17 Feb 2006
Posts: 3
Location: Chennai, India
ProggieAbe
Using C I was able to create an Application Desktop Toolbar. But with fasm I got struck can someone help me accomplish this.

Here goes my C code

Code:
    .....
    APPBARDATA abd = {0};
    switch(uMsg)
    {
      case WM_CREATE:
           abd.cbSize = sizeof(APPBARDATA);
           abd.hWnd = hwnd;
           SHAppBarMessage(ABM_NEW, &abd);
           abd.rc.top = 0;
           abd.rc.left = 0;
           abd.rc.right = GetSystemMetrics(SM_CXSCREEN);
           abd.rc.bottom = abd.rc.top + 60;
           
           abd.uEdge = ABE_TOP;
           
           SHAppBarMessage(ABM_QUERYPOS, &abd);
           SHAppBarMessage(ABM_SETPOS, &abd);
           
           MoveWindow(hwnd, abd.rc.left, abd.rc.top, abd.rc.right - abd.rc.left, abd.rc.bottom - abd.rc.top, TRUE);    
Post 17 Feb 2006, 01:19
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
SHxxx - it's shell32.dll API
So get shell32.inc with imports. Then rewrite APPBARDATA structure from C++ SDK. And I guess the rest is just copy, change and paste thing. Rewriting from C/C++ to assembly of code that only uses some APIs isn't so hard.
Post 17 Feb 2006, 10:45
View user's profile Send private message Visit poster's website Reply with quote
ProggieAbe



Joined: 17 Feb 2006
Posts: 3
Location: Chennai, India
ProggieAbe
I tried in vain to create appbardata using FASM ... I would be grateful if someone could give me a proper start for creating the same. I tried to google it ...I couldnt find...

someone pls. help me out getting it done ...
Post 21 Feb 2006, 02:14
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
Here is my example program that uses AppBar.
It's nice feature, I didn;t know Windows allows you to do such thing Smile.


Description: AppBar Example
Download
Filename: AppBar.zip
Filesize: 10.4 KB
Downloaded: 122 Time(s)

Post 21 Feb 2006, 14:49
View user's profile Send private message Visit poster's website Reply with quote
ProggieAbe



Joined: 17 Feb 2006
Posts: 3
Location: Chennai, India
ProggieAbe
Thanks a ton...reverend Smile
Post 21 Feb 2006, 17:00
View user's profile Send private message Visit poster's website MSN Messenger 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-2020, Tomasz Grysztar.

Powered by rwasa.