User Guide

noviewall
Only add the specified images to the image sequence.
<default>
View all according to the View all images in folder option found in
the Tools | Options, Viewer page.
Command examples
[open-add(“c:\images\apple.jpg”, “c:\images\quince.jpg”)]
[open-noadd-viewall(“c:\images\animals\dog.jpg”)]
[open-noadd(“c:\images\animals\*.jpg”)]
[open-noadd(“c:\images\animals.ais”)]
Sample
The following sample illustrates how a client can use the Open command with
ACDSee.
#include <ddeml.h>
/***********
* DDEView *
***********/
static HDDEDATA CALLBACK DdeCallback(UINT, UINT, HCONV, HSZ, HSZ, HDDE-
DATA,
DWORD, DWORD)
{
return (HDDEDATA)NULL;
}
int DDEView(const char* pszAppPath, // path to ACDSee5.exe (can just use
// ACDSee5.exe” if ACDSee is installed
// correctly)
const char* pszFiles, // path to image file(s) - each file must be
// enclosed in quotes and separated by a space
int fAdd, // 0=>replace, 1=>add, -1=>according to options
// setting
int fViewAll) // 0=>view all in folder, 1=>only this,
// -1=>options setting
{
DWORD idDDE=0;
UINT err = DdeInitialize(&idDDE, (PFNCALLBACK) DdeCallback,
APPCLASS_STANDARD | APPCMD_CLIENTONLY, 0);
if (err == DMLERR_NO_ERROR)
{
HSZ hszDDEService, hszDDETopic;
HCONV hconv;
210