Questions concerning implementation of Single-Document Interface (SDI) may have this tag.
Questions tagged [sdi]
90 questions
1
vote
1 answer
Visual Studio 2017 MFC SDI Debug Assertion OnCreate
I want to create a MFC Single Document Application with Visual Studio 2017.
I had made the following Configuration when I create the new Project:
If i now Build and Run the newly created Project without any changes on the code it immediately…

Kevin
- 785
- 2
- 10
- 32
1
vote
2 answers
MFC SDI GetActiveView() always returns NULL
I need help with switching between CFormViews in my MFC SDI C++ project. I have been digging for a long time, and can't figure out why my code isn't working. Through searching the internet (and this site included) I came across several tutorials for…

Just Me
- 91
- 4
- 12
1
vote
0 answers
FFmpeg SDI to XDCam MXF (Audio Outsync Issue)
We have a requirement to capture SDI input 8 channels using Decklink card and the output would be in XDCam 50 MXF,8channels . Below is the command that we are using.
ffmpeg -f dshow -video_size 1920x1080 -channels 8 -pixel_format uyvy422 -rtbufsize…

Sagar Shirke
- 11
- 1
1
vote
1 answer
MFC SDI rich edit 2.0 control bolding words
How would i go about formatting text in a rich edit 2.0 control? As of right now i just have a simple little MFC program with a single view and just one rich edit 2.0 control. It's currently empty but i want to insert some text into it.
The control…

Steven V
- 65
- 5
1
vote
1 answer
How to place the CDockablePane on CView
This is a empty SDI project
As you see, I need to put the "cdockpane" on the center view, but I don't have any idea how to do it.

xuecat
- 33
- 3
1
vote
0 answers
MFC: List of most recently used doesn't show up in the menu (aka some terribly stupid bug I'm doing)
This makes me feel bad about myself: I can't convince the MRU list to show up in my MFC app's menu despite the fact that I'm doing all the same things that I did with my last project in which I used it, that is:
(a) loading the MRU by…

tomascz
- 235
- 1
- 13
1
vote
2 answers
Organize windows in a SDI Delphi Application
In an Delphi MDI application i can use the Tile,Cascade and ArrangeIcons procedures to organize my child windows, this methods only works when the FormStyle property is set to fsMDIForm, How i can produce the same effect in an SDI application, i…

Salvador
- 16,132
- 33
- 143
- 245
1
vote
0 answers
SDI: Make modal form application topmost
In my VSTO Add-In written in C# I show a modal form with form.ShowDialog();.
The owner of this modal form is (in Excel 2013) the currently active workbook window.
Now the problem:
1) Open a second workbook with Ctrl + N
2) Show the modal form
3) Now…

jreichert
- 1,466
- 17
- 31
1
vote
2 answers
Split view in two with a menu button? (MFC)
I have an MFC program written that reads files, stores the data, and draws it as text on the client view.
I want to make a menu button View->Split that splits the client area into two, separately scrolling views displaying the same data.
I saw some…

JayB
- 397
- 6
- 21
1
vote
0 answers
CStatic DrawItem method getting called too freequently after creating a child window
I have a Image viewer application window using layout splitters.
I am drawing the bitmap on a dialog inside a splitter using a custom image control
class CPictureCtrl :
public CStatic
{
public:
.
.
protected:
virtual void…

Suneesh
- 469
- 7
- 21
1
vote
1 answer
resize issue CListBox inside SDI application with CWnd derived child
I am having a problem with the size of the CListBox that is suppose to cover all the client area of the SDi application.
My Main Window looks as shown below:
As you can clearly see that the list box does not cover the whole client area.
The…

user3250220
- 23
- 4
1
vote
1 answer
Adding Multiple Views to a VC++ 2010 SDI using MFC
I'm trying to add multiple (actually 3 ) views to an SDI application and give the user choose witch View will be load according to his choice :
IMG
I have followed this tutorial in the official MS documentation .
So, have created three classes : …

Serhan
- 605
- 9
- 19
1
vote
2 answers
How to specify negative range for slider control?
I am developing a MFC based SDI VC++ application. In my application I need to specify negative range value for my Slider Control. The minimum range for the Slider is -40 and maximum range is 255. I tried it using SetRange function. But it is not…

Ferin Jose
- 45
- 1
- 2
- 9
1
vote
1 answer
MFC SDI with multiple views based on file extension
I'm trying to build an MFC SDI (Single-Document Interface) application with these requirements:
Show only one document at a time.
Support different views based on the file type chosen from the file open dialog. For example, if a *.txt file is…

spurgeon
- 1,082
- 11
- 34
1
vote
3 answers
how to add an icon in the title bar of an SDI App developed using MFC?
I have to make changes to an existing Application developed using MFC. this application uses the SDI template with Document\View architecture. I need to place an icon on the window that is being shown at the execution of the Application. At present…

dev
- 191
- 1
- 4
- 14