Click here to Skip to main content
15,896,727 members

Comments by Member 10781325 (Top 34 by date)

Member 10781325 16-Mar-16 11:21am View    
Thx for the anwser. Maybe this is true. But if i set up a new mfc project. I see the same behaviour. Why does mfc not take the default printer settings for all of the printers? Or do you know how i can change the settings before calling DoPreparePrinting? Thx for your help!
Member 10781325 1-Jun-15 7:00am View    
Thx for your help! I found (an ugly) solution. In vs10, default dpi-awarness is by default set on true. I set it on false, now my application looks as before;-)
Member 10781325 27-May-15 10:55am View    
hi, when i use setsize, only the toolbar height changes (becomes bigger, as i want)
But the bitmap stays small.... (i want, that it becomes bigger too)

I would take the resolution into account, but i cant even change the bitmap-size;-)
Member 10781325 4-May-15 16:46pm View    
ok, here is a brief summery: the chessboard is a control, which consists of a grid with 8 columns and 8 rows (= 64 fields). In each of this grid-fields is another control, which i called Field. A field consists only of an image. ( the image with the figure, which stays on this field.) It also has a dependency property called FigureNumber.
If this number changes, i load the right image.

In the code behind of the chessboardcontrol, i have an 8x8 array (arrChessBoard) of ChessFigures (which are the figurenumbers, these are extended bytes: INotifypropertychanged, see code). What i now want: if i change byte (chessfigure) in this array, the right image should appear in the chessboardcontrol. I set the figurenumbers of the arrChessBoard in the contructor of the chessboardcontrol, but no figure is showed...

Here is my code:

the first of the 64 fields of the schachboardcontrol (i left out grid.row = 0 and grid.column = 0):

schach:field figurenumber="{Binding arrChessBoard[0][0], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" removed="BurlyWood">

public class ChessFigure : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private byte _Value;
public byte Value
{
get { return _Value; }
set { _Value = value; OnPropertyChanged("Value"); }
}

void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
I dont know, why this does not function... There simply does not appear an image.
When i debug the program, i noticed, that the handler is always null and the event is never fired. But i dont know why;-)^^

thx for your time!
Member 10781325 29-Apr-15 9:29am View    
Thanks for your anwser, but i do not really understand, what you where writing. Can you try to explain it to me?

What is the strategy you think at?