|
How are you trying to print it now. What does your "Draw" code look like? (small snippet)
|
|
|
|
|
fine,
I could not print formview properly that have scroll bar.
so i remove scroll bar.
|
|
|
|
|
Hi,
i have a CComboBox in my CDialog but after dialog is shown, CComboBox hide the cursor, caret!
Combo dont lose the focus, just hide the caret!
What to do to avoid this, is there any way for this, or is there any way to show caret in combobox again??
Thanks for any help
Arrin
|
|
|
|
|
change the style of combobox
1.By property
or
2 SetExtendedUI function
|
|
|
|
|
Hello,
thanks for answer, no changes
i call this funcion like this:
mycombo.SetExtendetUI(TRUE);
regards
Arrin
|
|
|
|
|
If you start typing, do the characters appear in the combobox? And does the caret reappear when you do?
|
|
|
|
|
Hello Friends
I am creating an application tht saved the image into multilayer TIFF format.but when I open that tiff image again I want to exchange the layers same as in photoshop.
Any Ideas?
Thanks & Regards
Yogesh
|
|
|
|
|
AFAIK, there is no explicit support in the TIFF format for "layers". you can save multiple images into the same TIFF file, but interpreting these sub-images as layers (as opposed to separate images) is something that will be entirely within your own application.
|
|
|
|
|
Hello Chris
Thanks for your reply .as you said that we can save multiple images into tiff file so that can be save in tiff format.So,for exchanging layers do i need to change in tiff file format or something else we can do with that?
Thanks & Regards
Yogesh
|
|
|
|
|
Please help me to find solution for drag and increase the size of list view control in win32
|
|
|
|
|
Just make the List View the child to your mainframe window and it should resize as you move and resize the mainframe. Or do I misunderstand your question?
It's time for a new signature.
|
|
|
|
|
thanks for the response i would like to explain my req clearly
wat i want exactly is to drag the list view only not the form form should be in fixed size ... but list view should be resizable in drag event
|
|
|
|
|
When you say 'form' I assume you mean that this is a Windows Forms CLI project. In which case you just need to adjust the properties of the list view to make it draggable, as far as I am aware.
It's time for a new signature.
|
|
|
|
|
I want to write a driver with MS Visual C++ 10 using WDK 7.1.0 but when I compile the source code I get this message:
ClCompile:
source.cpp
d:\winddk\7600.16385.1\inc\ddk\wdm.h(14198): fatal error C1189: #error : "No target architecture defined"
Build FAILED.
My CPU architecture is x86 so why does this error occur while x86 architecture is defined in wdm.h? and what's the solution?
|
|
|
|
|
Just define it at the top in your main header :
#define _x86_ <place your year of birth here...>
virtual void BeHappy() = 0;
|
|
|
|
|
Yes you are right. I defined _X86_ and it worked.
Now I have 2 new question:
1- Does making device driver need to be create in a makefile project?
2- After defining _X86_ I got these messages why?
source.obj : error LNK2001: unresolved external symbol __imp__IoDeleteSymbolicLink
source.obj : error LNK2001: unresolved external symbol __imp__IoDeleteDevice
source.obj : error LNK2001: unresolved external symbol __imp__IoCreateSymbolicLink
source.obj : error LNK2001: unresolved external symbol __imp__IoCreateDevice
I include ntoskrnl.lib too.
|
|
|
|
|
1. I do not know it, sorry,
but you may be have an example provided by the kit (?)
2. Try this pragma in your main header, please :
#pragma comment(lib, "ntoskrnl.lib")
virtual void BeHappy() = 0;
|
|
|
|
|
Take a look at the header file referred to in the error message, it should give you some clue as to what is missing. Alternatively the DDK documentation should explain what you need to set up in a new project.
It's time for a new signature.
|
|
|
|
|
I recently developed a driver for a PCI device - and all my reading pointed me STRONGLY in the directtion of using the DDK itself to do the compile.
So, I used VS to create the actual code, and alt tabbed to a checked / free build environment dos window.
Press build, and you're done.
The will generate error / warning files. You can load them in VS - and when a build is done, VS prompts to reload them.
There are articles out there to batch the build from f5, but they seemed over complex.
Good luck,
Iain.
ps, In case it's not clear - go to Start, All Programs, Windows Driver Kits, WDK 1.2.3.4, Build environments, etc.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
|
How to construct CTime date with 1 jan 2010?
|
|
|
|
|
Use the constructor that allows you to set the day of month, month of year and year.
It's the second one down on this[^] page.
Cheers,
Ash
|
|
|
|
|
Hello, I have a question about the tab order in a MFC dialog with a CTabCtrl or CPropertySheet with some tab pages and controls on the pages and some other controls at top and at bottom in the main dialog.
The layout of the main dialog is:
-----------------------
Button1 Button2 Button3
CTabCtrl or Sheet with Page1, Page2, Page3
Button4 Button5 Button6
-----------------------
I would expect that the tab order is (active Page is Page1):
1) Button1 -> Button2 -> Button3 -> Tab of Page1 -> All controls of Page1 -> Button4 -> Button5 -> Button6
But the tab order is:
2) Button1 -> Button2 -> Button3 -> Button4 -> Button5 -> Button6 -> All controls of Page1 -> Tab of Page1
Should it be 1) or 2) and why?
Thanks for your help,
Andreas.
|
|
|
|
|
Andreas,
You can hold Ctrl+D and you will see the tab order of all controls with their numbers. Now to modify it, click on control on which you want a tab to start at first, now go on clicking on controls as per your need and the tab order will get set for you. Alternately, you can also modify the .rc file of your application to set the tab order but that is a tricky and dangereous way of doing it.
Better to follow the first approach and the Visual Studio will make things for you.
Thanks,
Anand.
|
|
|
|
|
Hello Anand,
I know that I can edit the tab order in resource editor and I have done it already for this example. The question was if the user would expect 1) or 2) as the result.
Andreas.
|
|
|
|
|
C++ Hacker wrote: Should it be 1) or 2) and why?
I would expect #2. I've seen other apps do this so I am already familar with it.
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|