FunctionName "Form1::Prototype for IsValidMove()";
@end;
@begin UserFunction "Feedback()"
GencodeSrcLine 593;
FunctionName "Form1::Feedback()";
@end;
@begin UserFunction "Prototype for Feedback()"
GencodeSrcLine 159;
FunctionName "Form1::Prototype for Feedback()";
@end;
@begin UserFunction "Prototype for Continue()"
GencodeSrcLine 161;
FunctionName "Form1::Prototype for Continue()";
@end;
@begin UserFunction "Prototype for GetPosition()"
GencodeSrcLine 163;
FunctionName "Form1::Prototype for GetPosition()";
@end;
@begin UserFunction "Prototype for StartMove()"
GencodeSrcLine 165;
FunctionName "Form1::Prototype for StartMove()";
@end;
@begin UserFunction "Prototype for Place()"
GencodeSrcLine 167;
FunctionName "Form1::Prototype for Place()";
@end;
@begin UserFunction "Prototype for IsFinished()"
GencodeSrcLine 169;
FunctionName "Form1::Prototype for IsFinished()";
@end;
@begin UserFunction "Prototype for MakeBoard()"
GencodeSrcLine 171;
FunctionName "Form1::Prototype for MakeBoard()";
@end;
ResID 103;
DesignName Form1;
TabIndex 0;
DesignRect 83,103,263,210;
@end;
@begin Menu
ItemCount 4;
DesignName "menu_1";
IsDefault 1;
ResID 101;
DesignRect 0,0,14,14;
@begin Popup
Name "File";
Caption "&File";
NegotiatePosition None;
@begin Item
Name "New";
Caption "New &Game";
ResID 1003;
NegotiatePosition None;
@begin Event "Click"
GencodeSrcLine 621;
FunctionName "Form1::menu_1_New_Click";
@end;
@end;
@begin Item
Name "Exit";
Caption "E&xit";
ResID 1004;
NegotiatePosition None;
@begin Event "Click"
GencodeSrcLine 613;
FunctionName "Form1::menu_1_Exit_Click";
@end;
@end;
@end;
@begin Popup
Name "item_1";
Caption "&Help";
NegotiatePosition None;
@begin Item
Name "item_4";
Caption "A&bout";
ResID 1002;
NegotiatePosition None;
@begin Event "Click"
GencodeSrcLine 633;
FunctionName "Form1::menu_1_item_4_Click";
@end;
@end;
@end;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
DragSourceTag "*";
DragTargetTag "*";
@begin Event "Create"
GencodeSrcLine 641;
FunctionName "Form1::pictb_1_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 651;
FunctionName "Form1::pictb_1_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 665;
FunctionName "Form1::pictb_1_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 672;
FunctionName "Form1::pictb_1_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 681;
FunctionName "Form1::pictb_1_DragStart";
@end;
ResID 102;
DesignName pictb_1;
TabIndex 1;
DesignRect 47,74,33,31;
@begin ComponentData "pictb_1"
Picture "<no picture>";
@end;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorBackground";
@begin Event "Create"
GencodeSrcLine 689;
FunctionName "Form1::pictb_2_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 696;
FunctionName "Form1::pictb_2_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 705;
FunctionName "Form1::pictb_2_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 712;
FunctionName "Form1::pictb_2_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 720;
FunctionName "Form1::pictb_2_DragStart";
@end;
ResID 103;
DesignName pictb_2;
TabIndex 2;
DesignRect 80,74,33,31;
@begin ComponentData "pictb_2"
Picture "<no picture>";
@end;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorActiveCaption";
@begin Event "Create"
GencodeSrcLine 727;
FunctionName "Form1::pictb_3_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 734;
FunctionName "Form1::pictb_3_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 742;
FunctionName "Form1::pictb_3_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 749;
FunctionName "Form1::pictb_3_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 758;
FunctionName "Form1::pictb_3_DragStart";
@end;
ResID 104;
DesignName pictb_3;
TabIndex 3;
DesignRect 113,74,33,31;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorBrightRed";
@begin Event "Create"
GencodeSrcLine 765;
FunctionName "Form1::pictb_4_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 772;
FunctionName "Form1::pictb_4_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 780;
FunctionName "Form1::pictb_4_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 787;
FunctionName "Form1::pictb_4_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 796;
FunctionName "Form1::pictb_4_DragStart";
@end;
ResID 105;
DesignName pictb_4;
TabIndex 4;
DesignRect 47,104,33,31;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorGreen";
@begin Event "Create"
GencodeSrcLine 804;
FunctionName "Form1::pictb_5_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 810;
FunctionName "Form1::pictb_5_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 818;
FunctionName "Form1::pictb_5_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 825;
FunctionName "Form1::pictb_5_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 834;
FunctionName "Form1::pictb_5_DragStart";
@end;
ResID 106;
DesignName pictb_5;
TabIndex 5;
DesignRect 80,104,33,31;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorCaptionText";
@begin Event "Create"
GencodeSrcLine 842;
FunctionName "Form1::pictb_6_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 848;
FunctionName "Form1::pictb_6_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 856;
FunctionName "Form1::pictb_6_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 863;
FunctionName "Form1::pictb_6_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 872;
FunctionName "Form1::pictb_6_DragStart";
@end;
ResID 107;
DesignName pictb_6;
TabIndex 6;
DesignRect 113,104,33,31;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorRed";
@begin Event "Create"
GencodeSrcLine 880;
FunctionName "Form1::pictb_7_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 886;
FunctionName "Form1::pictb_7_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 894;
FunctionName "Form1::pictb_7_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 901;
FunctionName "Form1::pictb_7_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 910;
FunctionName "Form1::pictb_7_DragStart";
@end;
ResID 108;
DesignName pictb_7;
TabIndex 7;
DesignRect 47,135,33,31;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorPink";
@begin Event "Create"
GencodeSrcLine 918;
FunctionName "Form1::pictb_8_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 924;
FunctionName "Form1::pictb_8_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 932;
FunctionName "Form1::pictb_8_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 939;
FunctionName "Form1::pictb_8_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 948;
FunctionName "Form1::pictb_8_DragStart";
@end;
ResID 109;
DesignName pictb_8;
TabIndex 8;
DesignRect 80,135,33,31;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorBrightGreen";
DragSourceTag "*";
DragTargetTag "*";
@begin Event "Create"
GencodeSrcLine 956;
FunctionName "Form1::pictb_9_Create";
@end;
@begin Event "DragContinue"
GencodeSrcLine 962;
FunctionName "Form1::pictb_9_DragContinue";
@end;
@begin Event "DragEnd"
GencodeSrcLine 970;
FunctionName "Form1::pictb_9_DragEnd";
@end;
@begin Event "DragFeedback"
GencodeSrcLine 977;
FunctionName "Form1::pictb_9_DragFeedback";
@end;
@begin Event "DragStart"
GencodeSrcLine 986;
FunctionName "Form1::pictb_9_DragStart";
@end;
ResID 110;
DesignName pictb_9;
TabIndex 9;
DesignRect 113,135,33,31;
@begin ComponentData "pictb_9"
Picture "<no picture>";
@end;
@end;
@begin Object "WPictureBox"
WSSIcon 1;
WSSNotify 1;
WCCSTop 1;
WCCSNoMoveY 1;
WCCSBottom 1;
WSClipSiblings 1;
WSChild 1;
WSVisible 1;
BackColor "WColorBackground";
ResID 111;
DesignName pictb_10;
TabIndex 10;
DesignRect 165,98,48,44;
@end;
@begin Object "WLabel"
WSSCenter 1;
WSSNotify 1;
WSSSunken 1;
WCCSTop 1;
WSClipSiblings 1;
WSChild 1;
WSExStaticEdge 1;
WSVisible 1;
Text " The object of this puzzle is to arrange the tiles, to create the picture on the right. This program demonstrates Drag and Drop events and Member Function creation. Refer to DragStart(), DragContinue(), and DragEnd() for drag and drop techniques.";
ResID 112;
DesignName label_1;
TabIndex 11;
DesignRect 16,15,213,39;
@end;
@begin HPPPrefixBlock
@begin-code HPPPrefix
#include "wres.h"
#include <stdlib.h>
#include <time.h>
WRect _board;
WRect _r[ 9 ];
WPoint _positions[ 9 ];
WPictureBox * _missing;
WBitmap bitmap[ 10 ];
int _tile[ 9 ];
int _width;
int _height;
int _start;
int _blank;
@end-code;
GencodeSrcLine 10;
@end;
@begin CPPPrefixBlock
@begin-code CPPPrefix
// Code added here will be included at the top of the .CPP file