|
[assumptions]You're using EM_STREAMIN to get text into a rich-edit control[/assumptions]
I don't see how that's going to work - the text isn't in the rich-edit control yet, so won't be accessible through the control.
I suspect the only way to do it is to tell the control that you're giving it RTF and annotate the text with RTF markup - here's the RTF spec[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Exactly what I was thinking
I am trying to display a Storage Dump From the Rich Edit
So...... On the left hand side I would have 0000010 the 16 bytes newline
000020
I would like to high light the storage location So...
In the call back function I would probably mark it up with XXXXXX
Once the text is in the Rich Edit Object. I would do A FindText to give me the index of
the current XXXXXX Setsel give it the attributes I want
Then ReplaceSel with the right Storage location number
thankx
Again
thnakx
|
|
|
|
|
hi,
i am creating some CStatic based controls on a dialog with a regular MFC DLL. (MFC statically linked)
so ,main application calls some functitons in DLL, Like: Create ,Resize ,Move
and DLL creates control on main app's dialog and manages control as main app needs
my problem is:
with this method , tooltips , TAB , CTRL + combinations do not work
could you help me to solve this problem, Please
thanks in anvance
|
|
|
|
|
Do let me know the exact purpose for using static control.
Because the functionality that you require can be done using CStatic, however it is easier to use some other control like CButton and then customize it to use in whatever way you want.
CButton already has Tab and tooltip enabled.
Also to enable tab you need to first set the property tabstop to TRUE(this is FALSE by default for static controls) Then you need to write code to show the focus on the static control.
See the following URL to show tool tip on static control:
http://sarathc.wordpress.com/2007/09/29/simple-way-to-enable-tooltip-for-static-controls/
|
|
|
|
|
thank you for your reply
but the problem is not that ,i knew that and tried but it does not work because,i am creating the control from a dll , i think this is related with the message loop, but i could not find a solution to this
this is a relevant link and this was not work also
http://support.microsoft.com/kb/187988/en-us[^]
thanks
|
|
|
|
|
Hi there.
I want to create jpg file programmatically.
Lets say I have some text "Hello", Now I want to create a jpg file that contains this text.
Thanks
PanB
|
|
|
|
|
So have you bothered to study the JPG file format?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Not yet. I was mainly looking for some sample code that can do the trick.
Can you please provide some pointers to do the same?
|
|
|
|
|
PankajB wrote: Can you please provide some pointers to do the same?
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Have you searched the internet and CP? Usually, nobody feels like offering any help to people who are not willing to help themselves. Not to mention you're asking for "the code" to do something that's extremely trivial. Like I said, in my other reply to you, there are two steps to it. Go ahead, give it a try and come back with a specific question if at all.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Two steps:
1. Draw your text to a bitmap.
2. Compress it to JPEG.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I want to do this programatically.
I think you have suggested using some tool may be mspaint.
If you are talking about through the cose itself, then please provide more details in raegrd to the sugegsted steps. Thanks.
|
|
|
|
|
I knew you wanted to do it programmatically. Have a look at Drawing lines, shapes, or text on bitmaps[^] and then you'll be left with compressing a bitmap to JPEG. A search must bring up an example, if you ask me.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Have a look at the jpeglib[^] stuff.
IMO, it's not an easy task if you want to do it completely manual.
Like other said, create an in-memory bitmap and save-as jpg with a known API like CImage or something similar.
This signature was proudly tested on animals.
|
|
|
|
|
|
If you like to see more info about jpg format see CXImage article on the codeproject it has helpful info for you.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Let me google your question for you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
lol very funny 
|
|
|
|
|
|
need help to understand output
LinkedStackType stack;
int x = 4, y;
stack.push(x);
stack.push(x-2 );
y = stack.top( );
stack.push(y +8 );
stack.pop( );
stack.push(x+y);
stack.push(x-2);
stack.push(y+3);
x=stack.top( );
stack.pop( );
y = stack.top( );
cout << x << ‘ ‘ <<y<<endl;
while (!stack.isEmpty( ) )
{
cout << stack.top( )<<endl;
stack.pop( );
}
|
|
|
|
|
flo561 wrote: need help to understand output
What about the output do you not understand?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
flo561 wrote: need help to understand output
See here[^]
Now, if you want a more useful answer, you'll need to give a bit more information. What don't you understand ? What is the problem ? ....
And please, put an explicit title for your posts, as explained in the posting guidelines.
|
|
|
|
|
get 2 pieces of paper. Tear them up into.. 8 pieces. write the number 4 on one of them (x=4)...
1) put the paper with "4" to the side.
2a) write the number 2 on another piece of paper (x-2=2).
2b) put that on top of the paper with "4" written on it.
3) look at the top of the pile. (y = stack.top()).
4a) write the number 10 on a piece of paper (y+8).
4b) put that on top of the stack.
5) take the top paper off the pile. throw it away
6a) write 6 on a paper (x+y)
6b) put it on the stack.
7a) write 2 on a paper (x-2)
7b) put it on the stack.
8a) write 5 on a paper (y+3)
8b) put it on the stack.
9) look at the top of the stack. (x = stack.top())
10) take the top paper off the pile. throw it away
11) look at the top of the stack. (y = stack.top())
12) write down the value of x and y.
13a) look at the top of the stack.
13b) write down that number
13c) throw that paper away
13d) go back to 13a until no more paper. that's why its called a "stack"
|
|
|
|
|
Hi,
Source content is copied using the “FolderCopy” to destination location and then it is compressed using FCIFlushCabinet API and written to the disk in the destination location. As per the source code implementation maximum space required in the destination path is two times greater than source content.(25 MB Source content (C:\ - where I have 1GB space) is copied to destination (d: Driver) where the disk space is 55MB)
1) In One machine Destination requires 55MB of free space and In other machine for doing the same operation requires 75MB and even 100MB of free space.
Why whenever we take a backup from source path to destination path, in destination path disk free space required varies from system to system. Is this problem because of FCIFlushCabinet
Regards,
Gnanaprakash
|
|
|
|
|
GnanaprakashJebaraj wrote: In One machine Destination requires 55MB of free space and In other machine for doing the same operation requires 75MB and even 100MB of free space.
Are the allocation units on each the same?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|