making swf play Full-window size

DLL Edition of the F-IN-BOX
Abelorn
Posts: 7
Joined: Wed Dec 08, 2010 11:26 am

making swf play Full-window size

Postby Abelorn » Wed Dec 08, 2010 11:43 am

IDD_Sample01_SWF_And_FLV_Player_DIALOG DIALOGEX 0, 0, 640, 480

Code: Select all

STYLE WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_VISIBLE |
    WS_CAPTION | WS_SYSMENU


i add WS_MAXIMIZE or WS_MINIMIZE styles here but they doesn't work, maybe i do something wrong? i want to start program maximized

and the main thing, how do i make swf movie follow size of the window?

code to create movie:

Code: Select all

m_hwndFlashPlayerControl =
         CreateWindow((LPCTSTR)FPC_GetClassAtom(theApp.m_hFPC),
                   NULL,
                   WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE,
                   0,
                   0,
                   800,
                   600,
                   m_hWnd,
                   NULL,
                   NULL,
                   NULL);

where 800 and 600 shouldn't be static but be same as window size

i use Sample01_SWF_And_FLV_Player as a template

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: making swf play Full-window size

Postby Softanics » Wed Dec 08, 2010 6:06 pm

Thank you for your questions.

Abelorn wrote:i add WS_MAXIMIZE or WS_MINIMIZE styles here but they doesn't work, maybe i do something wrong? i want to start program maximized


It seems that WS_MAXIMIZE doesn't work for a dialog, so you have to maximize the dialog by the C++ code: ShowWindow(m_hwndFlashPlayerControl, SW_MAXIMIZE).

Abelorn wrote:and the main thing, how do i make swf movie follow size of the window?


Just handle message WM_SIZE and resize m_hwndFlashPlayerControl.

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: Google [Bot] and 10 guests

cron