| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Oct 18, 2003 12:08 am Post subject: Changing views of an explorer window? |
|
|
Codescript, Dragonsphere or anyone else know of a way to send an
@sendmsg() or an @lib() to change the views of an explorer window?
Such as DETAILS, SMALL ICONS, LARGE ICONS, and LIST.
And or, find out what view an explorer window currently using?
Thanks,
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Oct 18, 2003 12:11 am Post subject: |
|
|
Couldn't you link to it with DDE?  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Oct 18, 2003 2:32 am Post subject: |
|
|
I've never had much success with DDE. In fact, I gave up on trying use
DDE long ago. It was too unreliable, and trying to find documentation
on programs that allowed DDE control was almost nill.
Right now, I'm using the browser element from VDS on my dialog, and
displaying a few folders. But I'd like to find out what view they had when
they close this program, so when they start it again, I can set the view
back to what they had last.
Can I use DDE for this?
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sat Oct 18, 2003 3:43 am Post subject: |
|
|
Hi Garrett
This is already there in the Table control API package.
http://www.vdsworld.com/index.php?page=download&fileid=341
This is a small snipplet taken for testing and it works here on XP.
Just click start and place the cursor over the the folder view
within 2 seconds and see the change.
For the different style constants you need to refer msdn for
"List View Window Styles" LVS_LIST,LVS_ICON so on
AND
you can get their corresponding values from
Visual DialogScript API Constant Reference or elsewhere.
http://www.vdsworld.com/index.php?page=download&fileid=332
NB: I don't know the internals of the XP Thumbnails style
It is different from a simple listview style.
BTW this thread belongs to Advanced section. Just joking
I am not a moderator and should not tell this. Please don't get upset.
| Code: | DIALOG CREATE,New Dialog,-1,0,259,176
DIALOG ADD,BUTTON,BUTTON1,132,82,88,24,Start
DIALOG SHOW
:EVLOOP
WAIT EVENT
GOTO @EVENT()
:BUTTON1BUTTON
CLIPBOARD CLEAR
wait 2
%x = @MOUSEPOS(x)
%y = @MOUSEPOS(y)
%H = @WINATPOINT(%x, %y)
%H = @STRDEL(%H,1,1)
LOADLIB USER32
REM you need to change the value %A for diff views.
%A = $3
%O = @LIB(USER32,GetWindowLongA,INT:,%H,-16)
%Z = @LIB(USER32,SetWindowLongA,INT:,%H,-16,@SUM(%O,%A))
FREELIB USER32
GOTO EVLOOP
:CLOSE
EXIT |
_________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension
Last edited by CodeScript on Sat Oct 18, 2003 4:19 am; edited 1 time in total |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Oct 18, 2003 4:03 am Post subject: |
|
|
I wasn't sure if I should actually post this in the advanced section or not. I
did consider starting this in there though.
I'll take a look at that code and the references you've noted. Just having
the references would have been enough to get me going in the right
direction. Before you posted, I didn't even have a direction to take.
Thank you kindly for your help.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
|
|
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 can attach files in this forum You can download files in this forum
|
|