|
am trying to load JPEG2000 (J2k) image and make use of the scalability features provided by J2k
by showing the image while loading. The tutorials clearly show that there are two possible “modes”:
- Progressive by resolution (You load the picture and it becomes sharper while loading, something
like interlaced GIF)
- Progressive by accuracy (ROI – region of interest)
I am interested in the first: “Progressive by resolution”. So I want to show the image while loading
for example if you download a 2 MB image through Modem connection.
I am looking for a exemplary implementation - does not matter in which language or platform it is running.
I would be grateful for any help.
Regards,
gicio
|
|
|
|
|
There any good beginner tutorials on making a context menu plug-in for Internet Explorer. I have come across a few articles here but none of them have the source code or the point you to MSDN to read about it. Trying to find something thats easy to follow.
Thanks!
|
|
|
|
|
If you just want to add items to the IE context menu that is easy. I imagine there is a way to replace it, but don't know how. What are you trying to do?
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
|
Thanks for the relpys. I kinda know how do add an item to the context menu (This is done through the registery) but what I would like info on is creating the DLL to grab the text thats selected and all that good stuff. Just something to get me started would be great. As an example (Not exactly but close) is just have an extra selection come up when I have selected text that says like Search for on goole then have my DLL get the text and post to google or wherever.
|
|
|
|
|
Hi. I have created a dialog called LOADS. This uses 8 radio buttons to allow the user to select the load (Hi / Low) on one of four instances of a wheelspeed transducer(WST). I therefore create an instance of LOADS in my main dialog:
LOADS WST
A second type of transducer is an Anti Skid Valve (ASV), but this has 6 instances of which I wish to set the load. The way I've implemented this is to have all six instances (12 radio buttons) on the LOADS dialog, and I pass a switch to DoModal() to tell it wether or not to disable the other two sets of radio buttons:
LOADS WST;
LOADS ASV;
if(WST.DoModal(1)!=IDOK)
return;
if(ASV.DoModal(0)!=IDOK)
return;
Then, in the LOADS functionality I can disable the unwanted radio buttons if the parameter to DoModal=1, and enable them if parameter =0;
Question: Instead of doing the above, how can I inherit a LOADS dialog so that I create a new dialog (eg LOADSASV) which I can then add the extra radio buttons to, thus replACING THE ABOVE CODE WITH:
LOADS WST;
LOADSASV ASV;
Can you help or point me to a suitable article? Thanks in advance.
Paul
|
|
|
|
|
Hi,
Im doing a project in Labview/IMAQ, but C/C++ can also be. I need to know how can it be done most effectively. I mean, It works in IMAQ in LabView, just by detecting particles, and measuring their max intercept and elongation.But there is a problem of right thresholding the original(grayscale) image. I also looked into hough transform - the demos are impressive. But there seems to be no implementation of it in Labview/IMAQ. Can you help somehow? Maybe you know where in WWW I can find some good and relatively simple Hough Transform implementation in C/Labview? Or some other way to do it. The calculation should take under a second for 2.4GHz computer - and image is big.
Thanks in advance.
Andru (CZ)
|
|
|
|
|
I have an app that is finished except for the aesthetics associated with my window resizing.
I need the windows size to be no smaller than a certain dimension and I need the height and width to always be a certain ratio.
I have built an OnSize handler, but it doesn't stop the window from resizing.
I have also tried using the WINDOWPLACEMENT structure and manually changing the values in that structure in response to the cx and cy passed to my OnSize handler, but it doesn't prevent all of my controls from resizing as the user continues to drag the window border.
How do I intercept the Window's resizing before the resize actually occurs so I can prevent the window from being resized?
|
|
|
|
|
See if something like this works:
void CMainFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
{
lpMMI->ptMaxSize.x = 640;
lpMMI->ptMaxSize.y = 480;
lpMMI->ptMinTrackSize.x = 640;
lpMMI->ptMinTrackSize.y = 480;
CFrameWnd::OnGetMinMaxInfo(lpMMI);
}
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
(Montgomery Burns, rubbing hands together) Excellent.........
Thanks DavidCrow! That nipped those pesky, resizing windows in the bud.
I wonder why WM_GETMINMAXINFO doesn't show up in class wizard?
Is there a way to tell VisualStudio to show all of the windows messages?
|
|
|
|
|
Terry O`Nolley wrote:
I wonder why WM_GETMINMAXINFO doesn't show up in class wizard?
Um, it does for me. Did you select the right class in the Class name: combobox?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
DavidCrow wrote:
Did you select the right class in the Class name: combobox?
Yes - the listing of WM_ did not include WM_SIZING or WM_GETMINMAXINFO. My entire list of WMs is only 37 messages. I have had to manually write many of my handlers because they don't show up in class wizard.
I'm using VC++ 6.0 and the app is dialog based.
|
|
|
|
|
Click the Class Info tab. In the Message filter: combobox, select something other than Dialog.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Cool - I changed it to Window and now all of the messages are there. Thanks again!
|
|
|
|
|
Terry O`Nolley wrote:
Is there a way to tell VisualStudio to show all of the windows messages?
There is a filter within the class wizard, that based upon the MFC class that your class inherits from, the wizard will filter what messages it will build for you. Fortunately you can change the filter. I can't remember the tab, but within the wizard dialog somewhere you change the setting from CDialog to CWnd, the wizard will allow to pick from other messages like WM_GETMINMAXINFO.
Chris Meech
If you spin a Chinese person around, do they become dis-oriented?
Why do people in this time period worry so much about time traveler's destroying their worldline when they have no problem doing it themselves every day? John Titor.
|
|
|
|
|
|
Is it a form view class?
If so then you need to do it within the ChildFrame (not FormView)
|
|
|
|
|
No, it is a dialog-based app.
|
|
|
|
|
In that case you have to write a OnSizing handler...
something like this:
void CMyDlg::OnSizing(UINT fwSide, LPRECT pRect)
{
CDialog::OnSizing(fwSide, pRect);
int nMinHeight = GetSystemMetrics(SM_CXHSCROLL)*12;
if (pRect->bottom - pRect->top < nMinHeight)
{
if (fwSide == WMSZ_TOP|| fwSide == WMSZ_TOPLEFT || fwSide == WMSZ_TOPRIGHT)
pRect->top = pRect->bottom - nMinHeight;
else pRect->bottom = pRect->top + nMinHeight;
}
} // OnSizing
|
|
|
|
|
Thanks much! Between DavidCrow showing me how to set absolute width and height by handling GetMinMaxInfo and your pointer to the OnSizing handler (I had been trying to do all of this in OnSize - which is sent after the resize) so I can force the window to stay proportional, I think I am finished.
So now that I have written it I can begin documenting it
|
|
|
|
|
Try looking up WM_SIZING. It looks like it should help.
Or possibly WM_WINDOWPOSCHANGING.
Iain.
|
|
|
|
|
I am trying to display my result this way:
Volumes Amounts
22 12
45 89
897 954
Total: 1055
When I run the program I get this:
Please help
Volumes Amounts
22 12
45 89
897 954
Total: 1055
cout<<"\nTotal number of bills: "<<num<<endl;
if (num="">0)
{
cout<
|
|
|
|
|
sardinka wrote:
I am trying to display my result this way:
Volumes Amounts
22 12
45 89
897 954
Total: 1055
When I run the program I get this:
Please help
Volumes Amounts
22 12
45 89
897 954
Total: 1055
What you want and what you are getting appear to be the same. So what is the problem?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
sardinka wrote:
I am trying to display my result this way:
Volumes Amounts
22 12
45 89
897 954
Total: 1055
When I run the program I get this:
Volumes Amounts
22 12
45 89
897 954
Total: 1055
I'm not sure what you are asking. To me, the output looks exactly the way you described it should look.....
Could you edit your post and use the < PRE> tags if you are having a spacing problem - without the < PRE>tags, youd output looks just like you describe it.
|
|
|
|
|
I am trying to display my result this way:
Volumes Amounts
22 12
45 89
897 954
Total: 1055
When I run the program I get this:
Volumes Amounts
22 12
45 89
897 954
Total: 1055
|
|
|
|