|
Hi,
I'm Developing a live video streaming application in vc++ using DirectX VideoMixingRenderer filter. I can able to draw rubber band rectangle on live video using DirectX SetAlphaBitmap() through my mouse move. if my video frame size(4CIF) is greater than my picture box control size, it's working fine. Suppose, my video frame size(CIF) is less than my picture box control size,
1) only 3 sides of the rectangle can be visible.
2) sometimes 2 sides only can be visible.
3) Above two context has been happen randomly.
Please, somebody help me out from this issue.
Thanx in advance,
Regards
Surez
|
|
|
|
|
hi,
how would it be to draw the ruuber band rectangle in the video frame or change the size of the picture box that is fits with the video frame size.
bless..
|
|
|
|
|
I have created a bitmap for picture box's DC and draw the rectangle on it. Whenever mouse move, new coordinates has been generated and redraw the rectangle. Finally, attached my custom bitmap into directx frame using SetAlphaBitmap(). The Custom bitmap not originally attached to the video frame, it has been attached when a video frame has ready to visible.
I would like to render different frame size of streams from IP-camera, mean while I would like to maintain my picture box size as static.
|
|
|
|
|
Hi to All,
After trying a lot, too I am not able to find a proper solution for my data-grid. Please anyone help me out.
Can anyone please give a small example of using microssoft datagrid 6 in vc++6 mfc. without any database...may be entering data/record from within a loop
i was looking for a kind of datagrid, where by double clicking i can enter a new record.
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
for your kind of requirement, MSFlexGrid activeX control seems to be the best one.
just try it out.
but for double click, adding a new record, you need to implement your own logic.
if you are stuck up anywhere,
then i can help you.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
There is the Context-Menu key on the keyboard. It works as user right-clicking the mouse.
If I have to emulate this key down / up, what message should I send?
Thanks.
Maxwell Chen
|
|
|
|
|
Well, I don't know the answer to your question.
But I know who does...
Your own PC, and Spy++.
Run (eg), notepad. Run spy++ and monitor messages.
Press the context-menu key. Let go of it. Go look at spy++!
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Thanks! They are:
WM_KEYDOWN, VK_APPS
WM_KEYUP, VK_APPS
But not working in my code...
Maxwell Chen
|
|
|
|
|
An alternative for you is to send the WM_CNTEXTMENU[^] message instead...?
Good luck,
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Hi to All,
I need to use the data grid control in vc++6 MFC.
But I cannot see it in my control Box.
Can anyone please tell me how to add it? (may be reference or some settings)
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
AFAIK, there's no grid control in the default VC6 controls. You will need to use the MSFlexGrid ActiveX control (import it from the activeX components list).
You can also use Chris Maunders's Grid control[^]
|
|
|
|
|
thanks for your reply..
Could you please tell me, if the user can add rows to the data-grid manually on the grid itself, (same like VB.NET)....That is my requirement actually. So please guide me which data grid control to use for the same purpose
thanks
-----------------------------
I am a beginner
modified on Friday, September 25, 2009 5:39 AM
|
|
|
|
|
HI all,
i m using calc.exe to open calculater from shell execute please thell me how can i open calendar or clock.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: i m using calc.exe to open calculater from shell execute please thell me how can i open calendar or clock.
I've not seen those executables since Program Manager and the Windows 3.x days.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
using shell execute, open "timedate.cpl"
|
|
|
|
|
Not a coding question but on bordeline, I’ll admit.
When I am using simple one row / two columns splitter window should I refer to left / right pane or view?
Same goes for tab view (or actually control) – is it a tab or view or page?
Similar dilemma for a tree view.
I guess what I am asking is – how to name my class so it is descriptive
CCamera or CCameraView or CCameraTab if it is a AVI frame in “splitter tab” ?
Thanks for reading.
|
|
|
|
|
Vaclav_Sal wrote: When I am using simple one row / two columns splitter window should I refer to left / right pane or view?
I would go with a and b .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Vaclav_Sal wrote: should I refer to left / right pane or view?
When using a splitter window (or a Frame) I always put Views in each pane, so I would give them names such as IndexView, DetailView etc.
With Tab pages I would use Tab or Form as the suffix etc.
The main thing to consider is whether it makes sense to you and, more importantly, whether it would it make sense to someone else who had to maintain your code.
|
|
|
|
|
Hi to All,
I am a beginer in MFC.
I have added a new dialog box (property sheet_Medium) in my dialog based application. Now, i want to put a data-grid on the new dialog. Please tell me where do I write the code(to create the datagrid) for the same?.. I cannot see a OnInit method too. I want to show the grid when the dialog appears
Thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
You should do it in the OnInitDialog function of the dialog.
If you don't see the function, you must add it yourself.
OnInitDialog is a virtual function defined in the CDialog class.
You can override it in your derived class.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
hrishiS wrote: I have added a new dialog box (property sheet_Medium)...
Is this the name of your dialog class, or is the class derived from CPropertySheet ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
my question is
How can i concate two bitmap to produce third combine bitmap ?
here is my code:
CImage __Imageone;<br />
__Imageone.Load (L"D:\\2009\\testConsult.tif");<br />
<br />
int nWidthone = __Imageone.GetWidth();<br />
int nHeightone = __Imageone.GetHeight();<br />
<br />
COLORREF __colorefone;<br />
<br />
for (int i = 0 ; i < nWidthone ; i++)<br />
for (int j = 0; j < nHeightone ; j++)<br />
__colorefone = __Imageone.GetPixel (i,j);<br />
<br />
<br />
CImage __Imagetwo;<br />
__Imagetwo.Load(L"D:\\2009\\Header.TIF"); <br />
int nWidthtwo = __Imagetwo.GetWidth();<br />
int nHeighttwo = __Imagetwo.GetHeight();<br />
COLORREF __colortwo;<br />
for (int x = 0 ; x < nWidthtwo ; x++)<br />
for (int y = 0 ; y < nHeighttwo ; y++)<br />
__colortwo = __Imagetwo.GetPixel(x,y);<br />
<br />
how to combine these two into one ??
Thanks !!!!
|
|
|
|
|
For example:
CImage img[3];
img[0].Load(_T("D:\\2009\\testConsult.tif"));
img[1].Load(_T("D:\\2009\\Header.tif"));
int h, w , bpp;
HDC hdc;
w = img[0].GetWidth() + img[1].GetWidth();
h = img[0].GetHeight();
if (h < img[1].GetHeight()) h = img[1].GetHeight();
bpp = img[0].GetBPP();
if ( bpp < img[1].GetBPP()) bpp = img[1].GetBPP();
img[2].Create(w,h,bpp);
hdc = img[2].GetDC();
img[0].BitBlt(hdc, 0, 0);
img[1].BitBlt(hdc, img[0].GetWidth(), 0);
img[2].ReleaseDC();
img[2].Save(_T("img3.tif"));
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks mr.pall ..its really helpful 4 me
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
Is 'void' a data-type?
If yes then why sizeof(void) shows compiler error?
|
|
|
|