Hello everyone..
I am writing program for 3d reconstrucion from 2d images..
And I have a problem when i want to show those 2d images in a form of gallery, for example i show image no.1 and when i press "page up" key image 2 should appear, or when i press "page down" previous image appear, when i press "end" last image appear, and "home" first image appear..
Code:
The problem is next: page up and page down doesn't work, when i press page up it puts variable v=2 and if i press again it is still v=2, and for page down it is similar v=11, and again v=11. Home and End works good.
And another issue is that the program displays only blank image window without the real image,
and when i press escape it breaks while loop, and then displays image of the last value of v variable. Can anyone help me, i am out of ideas...
Yes that is it..Now it works.. thank you
Only one problem left, that is blank image window. I have been reading on the net and I learned that is because i have endless loop in program so it has no time to update the images, and I found something called WM_KEYDOWN message handler. I think i can make my gallery by that method, but i am new to this and dont know how to use it, does anyone have an example of this method or something that can be helpfull. Please anyone..