|
You need to process the mouse messages in your dialog, you have to do all the work because you don't have a frame.
Usually you have a select trigger, lets say that is left mouse click down (WM_LBUTTONDOWN) that sets a flag in your dialog handler.
When that flag is set you process WM_MOUSEMOVE messages to actually move the the window with the mouse.
Then you have a trigger to release, lets say that is left mouse button up (WM_LBUTTONUP) that clears the flag in your dialog handler.
You can confine the triggers to areas on your dialog or the whole dialog just by looking at position of the trigger messages and allowing or ignoring.
That is what the frame handler does and why you can't drag the dialog around without the frame. It also has triggers on the keys to allow you to size and move the window by the keys. The normal frame handler has special areas that turn triggers on/off the top bar allows dragging, the bottom right allows X,Y sizing the sides one direction sizing etc.
On MDI and SDI's they call a global default handler called DefFrameProc with some structures, you can look it up on MSDN. That should give you the detail of what you need to do if you want to complete implementation.
For graphical dragging and the like I only ever do the basic mouse one.
In vino veritas
modified 10-Mar-17 22:32pm.
|
|
|
|
|
Hi
I just used SnagIt Screen Capture to go over window pane by window pane of both the compiler options for debug and release and the only debug and release version
is the run time library 1) release its Multi threaded DLL /MD while in Debug its debug DLL /MDd
However I keep on getting different compile errors
at one point I had a clean build for Debug while Release was giving me errors
|
|
|
|
|
ForNow wrote: ...while Release was giving me errors And those would be?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR
I am working on Release when I get a clean build from Release I should have no problem
with Debug I hope
Thanks
|
|
|
|
|
Well we still have no real idea what your problem is.
|
|
|
|
|
|
Well he is 'mercan
|
|
|
|
|
Really? His sentence structure was more that of a Mandarin speaker using bad English.
|
|
|
|
|
|
LPCTSTR = Long Pointer to Const Tchar STRing
This will be const wchar_t * for Unicode builds and const char * for ANSI/multi-byte builds.
|
|
|
|
|
|
This has nothing to do with compiler options, per se. Use the _T() macro for the format string.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
ForNow wrote: mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string
Please, next time show the exact error message together with a line (or a couple of lines) causing the error.
|
|
|
|
|
I have downloaded and installed ImageMagick++ from http://www.imagemagick.org/Magick++/.
I am using Windows7 32 bit and Visual Studio 2008. I want to use the ImageMagick in an existing project. I made the required/suggested changes to my project properties like adding dependencies etc. I added three libraries in the additional dependencies (CORE_RL_Magick++_.lib,CORE_RL_MagickCore_.lib and CORE_RL_MagickWand_.lib
I added
Magick++.h header file and
using namespace Magick
Then
Magick:: Image image (No error)
image.read("5.png") throws an error "ErrorMissingDelegate at memorry location ....".
I tried other image formats also, but same error.
Please help.
|
|
|
|
|
|
Thanks for the reply.
The complete message is Magick::ErrorMissingDelegate at memory location 0x0012fafc.
I can understand there are some missing delegates but I really do not understand how do I have to install them.
Regards
|
|
|
|
|
I have only used ImageMagick on Linux so far and never build it (used the distribution binaries).
You should read the provided documentation: Advanced Windows Installation[^]
Read the "ENVIRONMENT VARIABLES" section and check if your build has created the required modules. If not, check the build configuration.
To check if it works in general, use an image format that does not require a delegate like GIF or JPEG.
If you are still stuck you might get better help in one of the ImageMagick Forums[^] (or even find the solution in an existing thread or FAQ there).
|
|
|
|
|
Thanks again. I am also using the Windows Binaries. I tried with GIF and JPEG but same error message.
|
|
|
|
|
Have you initialised the library?
Note, under Windows (and possibly the Mac) it may be necessary to initialize the ImageMagick library prior to using the Magick++ library. This initialization is performed by passing the path to the ImageMagick DLLs (assumed to be in the same directory as your program) to the InitializeMagick() function call. This is commonly performed by providing the path to your program (argv[0]) as shown in the following example:
int main( int argc, char ** argv) {
InitializeMagick(*argv);
...
and copied the DLLs to the path of your executable (Debug resp. Release) or used the path to the DLLs?
|
|
|
|
|
Thanks for the reply. Yes, it is as advised by you. I am not even able to run the demo project (Button) provided with the Windows Binary Installer.
|
|
|
|
|
Then I'm not able to help anymore.
I can only suggest to check your installation (all required modules present) and the setup (e.g. all required pathes set).
|
|
|
|
|
Hi,
Sounds like you are compiling ImageMagick without any image libraries.
Rajeev Raina wrote: Magick:: Image image (No error)image.read("5.png") throws an error "ErrorMissingDelegate at memorry location ....".I tried other image formats also, but same error.
LIBPNG[^]
LIBJPEG[^]
LibTIFF[^]
Many others...
Then recompile with:
./configure
--with-png=yes
--with-jpeg=yes
--with-tiff=yes
It can be alot of work... you might be better off downloading a precompiled binary:
Install from Binary Distribution @ ImageMagick[^]
Best Wishes,
-David Delaune
|
|
|
|
|
Hi guys,
When i first started learning programming language(ofcourse C!!) in my college I used to practice it on turboc compiler, Now a days we are using visual studio and online compilers and I found myself that the program which is executed in turboc without any error will show up with an error/s or warning/s in visual studio, if I made the necessary corrections to the program in order to execute it in visual studio with out any errors, it show will show up with errors on using online compiler why is that happening??, what is the difference between them??, why couldn't they execute the same program(say C program) which is already error free in other compilers??
|
|
|
|
|
Usually because the compilers are different levels, or do not implement the full standards properly. TurboC is very old and most likely allows things that Microsoft's C compiler (not Visual Studio) does not. As to online compilers you would need to check their details.
|
|
|
|
|
Thanks a lott..I think ur answer should help me.
|
|
|
|