|
Can you be more specific.
|
|
|
|
|
I have created a compatible DC(MemDC) of the printer DC.
Then MemDC->SelectObject(bitmap)
Then whatever I draw on the screen is drawn in memory.
and then I have Converted this bitmap from DDB to DIB.
Then I have written this DIB in a .bmp file. but when I open this file in Paint & give its print its resolution is not good i.e it is not appearing as a smooth image but an image with steps in it.
aasstt
|
|
|
|
|
aasstt,
I dont know your code but I use handle printer dc and I created bitmap
or I load bitmap from file and then print and resolution isnt bad.
Now you have bitmap from file or you created bitmap inside your program
|
|
|
|
|
I have created the bitmap and then written that bitmap using the WriteDIB function(which I have downloaded from codeproject)in a .bmp file.
aasstt
|
|
|
|
|
if you have bitmap(that you created) why you directly print instead save to file and again loaded?if it has handle HBITMAP
|
|
|
|
|
How to output a two dimensional array of datatype int array[x][y]in a Listbox control?
|
|
|
|
|
may i know what u r trying to do actually?
how u need the output???
Regards,
Prashanth.v
|
|
|
|
|
I would like to access each and every element in this array[100][100], in either list box or Edit box...but i couldnt get any result, my programm is gettign hanged,, plz help me
For eg:
int array[100][100];
CListbox m_intoutput;CEdit m_intoutput;
for(int i=0;i<100;i++)
for(int j=0;j<100;j++)
{
m_intoutput=array[100][100];
}
|
|
|
|
|
hii srija,
int array[100][100];
CListbox m_intoutput;CEdit m_intoutput;
for(int i=0;i<100;i++)
for(int j=0;j<100;j++)
{
CString str;
str.Format("%d",array[i][j]);
m_intoutput.Addstring(str);
}
Regards,
Prashanth.v
|
|
|
|
|
Ya, even i did so, but am getting junk values as output, for eg:-85899
-85899
-85899
-85899................
Waht could be the reason?
|
|
|
|
|
what so you want ecatly?
what is this?
m_intoutput=array[100][100];??
|
|
|
|
|
How do I get the command line arguments When I start my MFC EXE Application?
Can I find them somewhere from the CWinApp class…?
_____________________________
...and justice for all
APe
|
|
|
|
|
Of course
use the ParseCommandLine method, in your InitInstance of your CWinApp derived class...
from there it's easy
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
d00_ape wrote: How do I get the command line arguments
use GetCommandLine()
nave
|
|
|
|
|
Is there a way to use Windows vista controls in my VC++ application?
Thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
-- modified at 6:30 Tuesday 25th April, 2006
|
|
|
|
|
Hi Yaron,
What do you mean?
Do you want that you want to use the Media player inside your application and not as a seperate window?
Regards,
Eli
|
|
|
|
|
Media player???
no, i am taking about the new look of the new windows platform which is called 'windows vista' it has some cool GUI which i want to use in my VC application.
my question is, is there a library i can link to or APIs i can use to do so?
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Friends,
I am automating MS word from my MFC application. I want to perform following two tasks:
- Prevent MS-Word window from closing externally i.e i want to disallow the user to close MS word window by pressing the close button of the window OR selecting "exit" from the taksbar button, OR selexting exit from system menu OR by pressing Alt+F4 E.t.c.
- Disable the "Save As" option
Can anyone tell me whether it possible to acheve the foresaid tasks. This should be noted that because i am automating from my application, i obtained the HWND handle of MS-Word window and i am alreading using this handle to perform certain tasks which are not possible by automation.
|
|
|
|
|
Hi friends,
I have created one view window, from that view window I am calling one Dialog box.I want to pass public values from the view class to Dialog class.
Kindly reply
jawahar
|
|
|
|
|
J Jawahar wrote: from that view window I am calling one Dialog box.I want to pass public values from the view class to Dialog class.
Let ViewShowDialog is the function from where you calling te New Dialog Box
YourViewClass::ViewShowDialog()
{
CYourDlg dlgObj;
dlgObj.Var=View.Var;//pass the variable Content
dlgObj.DoModal();
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
hi jawahar,
before creating the dialog object.DoModal(), assign the values in view to dialog member variables.
|
|
|
|
|
I have got two colors' RGB value,I want to change one from the other gradually ,how should i do?
Another problem is that i have some data ranged from 0 to 1,how can I make them from one color to the the color gradually?
|
|
|
|
|
Your question is not clear
snowheavy wrote: I have got two colors' RGB value,
Ok, you have two values representing a color
snowheavy wrote: I want to change one from the other gradually ,how should i do?
What do you mean ? You want your first value to be changed to the second gradually ? This makes non sense unless you 'draw' that on the screen (on a line or rectangle for example). But then, this is dependent of the technology you are using. More info about that is needed. What are you using ? GDI, OpenGL, DirectX, ... ?
|
|
|
|
|
sorry for my poor expression ability,I use GDI,and I want to fill a region,In
fact,I have wrote this code to test:
for (int i = 0; i < step; i++)
{
COLORREF color;
color = RGB((maxR - minR)*i/step+minR,(maxG-minG)*i/step+minG,(maxB-minB)*i/step+minB);
GetView()->dcMem.FillSolidRect(6000 * i/step+5000,-2000,6000*(i+1)/step,1000,color);
}The mapm mode I am using is MM_HIMETRIC,I found some stripes on it,
I don't know why.thanks for your reply.
-- modified at 4:26 Tuesday 25th April, 2006
|
|
|
|
|